ted
(Ted Johansson)
27 Settembre 2023, 7:16pm
6
Grazie per il report @Lilly ! L’interfaccia utente non rifletteva in effetti il fatto che un moderatore non può creare, modificare o eliminare una categoria pubblica. Questo è stato risolto nella correzione qui sotto:
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 Mi Piace