Lhc_fl
(Linca)
10 Noviembre, 2022 02:04
1
Hola, soy administrador de un foro de Discourse. Debido a la particularidad del foro, a menudo necesitamos usar la función “no listado”.
Al probar los moderadores de categorías y los tl4, noté que no ven las publicaciones no listadas en sus categorías (incluso si las marcaron ellos mismos como no listadas).
Revisé Trust Level Permissions Reference y noté que no hay un interruptor para habilitarlos.
¿Es este requisito razonable? ¿Existen complementos que proporcionen dicho interruptor?
1 me gusta
Creo que es razonable, ya que los TL4 y los moderadores de gatos pueden responder a temas cerrados y responder tanto como quieran a temas con modo lento. Y de todos modos pueden quitar y volver a listar temas.
ted
(Ted Johansson)
17 Enero, 2023 08:50
3
¡Buena observación, @Lhc_fl !
Tiene sentido que los usuarios de TL4, que pueden listar y deslistar temas, también puedan ver los temas que han sido deslistados.
Esto se ha corregido en:
main ← Drenmi:feature/tl4-users-list-unlisted-topics
opened 06:50AM - 17 Jan 23 UTC
### What is this change?
In response to [this Meta topic](https://meta.discou… rse.org/t/allow-tl4-or-cat-mod-to-see-unlisted-topics-in-topic-list/245069).
TL4 users can already list and unlist topics, but can not see topics that have been unlisted. This change brings that back to par by giving TL4 users the ability to see unlisted topics as well.
(This could technically be considered a fix, but it's a bit unclear, and so I labelled it as feature to highlight the change in behaviour.)
### What's the approach?
I've added a new `TopicGuardian#can_see_unlisted_topics?` which grants permission to staff and TL4 users. This encodes the fact that staff users can see unlisted posts explicitly. This was previously implicit in the `TopicQuery` code. (See inline comment for more details.)
### What else was considered?
It originally looked to me as though this could be yet another alias of `#can_perform_action_available_to_group_moderators?`, which is used as a shared check for a number of actions, such as archiving, pinning/unpinning, opening/closing, etc.
However, as I went down this route, I encountered more and more friction stemming from the fact that all the other actions are operations on a particular topic. The end result was that the `#can_perform_action_available_to_group_moderators?` lost its conceptual clarity, and so I decided on a separate method instead.
### Manual verification
- [x] Staff can still see unlisted topics.
- [x] Users can still see unlisted topics _when viewing their own topics_.
- [x] Users can not see unlisted topics under other filters.
- [x] TL4 users can now see unlisted topics.
6 Me gusta
Lhc_fl
(Linca)
17 Enero, 2023 12:09
4
¡Guau, eso es genial! ¡Gracias por la solución!
3 Me gusta