ted
(Ted Johansson)
27.Сентябрь.2023 19:16:05
6
Спасибо за отчет, @Lilly ! Действительно, интерфейс не отражал тот факт, что модератор не может создавать, редактировать или удалять публичную категорию. Это исправлено в следующем обновлении:
main ← fix/disallow-mods-from-public-sidebar-sections
merged 05:52PM - 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 лайков