ted
(Ted Johansson)
Setembro 27, 2023, 7:16pm
6
Obrigado pelo relatório, @Lilly ! A UI de fato não refletia o fato de que um moderador não pode criar, editar ou excluir uma categoria pública. Isso foi resolvido na correção abaixo:
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 curtidas