ted
(Ted Johansson)
27 Septiembre, 2023 19:16
6
¡Gracias por el informe @Lilly ! La interfaz de usuario, de hecho, no reflejaba el hecho de que un moderador no puede crear, editar o eliminar una categoría pública. Esto se ha resuelto en la corrección a continuación:
main ← fix/disallow-mods-from-public-sidebar-sections
opened 01:49PM - 27 Sep 23 UTC
### What is this change?
Currently moderators can see the custom public sideb… ar section edit button, but they are prevented from making any changes by an error. According to the back-end, moderators can not access these.
**Trying to edit or create:**
<img width="508" alt="Screenshot 2023-09-27 at 3 48 14 PM" src="https://github.com/discourse/discourse/assets/5259935/c95584f9-1368-4181-a4f1-450e23852734">
**Trying to delete:**
<img width="255" alt="Screenshot 2023-09-27 at 3 48 21 PM" src="https://github.com/discourse/discourse/assets/5259935/3f333622-555e-45f8-b163-341f4c6a3df9">
This PR hides the custom public sidebar section edit button, as well as the "make public" checkbox of the create modal, if the user is not an admin, bringing the UI in line with the back-end.
If needed, we can add a site setting to allow moderator access when the need arises.
8 Me gusta