관리자가 카테고리를 관리할 수 있도록 하는 설정이 있습니다.
이 설정이 활성화되면, 관리자가 카테고리 보안 설정을 변경하여 더 이상 해당 카테고리에 접근할 수 없게 되는 경우가 발생할 수 있으며, 이는 대부분 의도치 않은 사고입니다.
물론 관리자는 이 상황을 복구할 수 있습니다.
관리자가 더 이상 접근할 수 없도록 카테고리를 변경하는 행위를 금지함으로써 이 문제를 해결하는 것을 제안합니다.
6개의 좋아요
sam
(Sam Saffron)
12월 11, 2025, 10:15오후
2
동의합니다. 최소한 이렇게 될 것이라는 경고와 확인을 표시해야 합니다.
2개의 좋아요
보고해 주셔서 감사합니다 @Steradiant
사용자가 권한을 변경하여 카테고리 접근 권한을 잃게 될 경우 확인 다이얼로그를 표시하도록 개선되었습니다
main ← prevent-moderator-self-lockout
merged 08:47AM - 18 Dec 25 UTC
When moderators with `moderators_manage_categories` enabled change category perm… issions, they could accidentally remove their own access, requiring admin intervention to fix.
This adds a client-side confirmation dialog that warns moderators before saving permission changes that would lock them out. If confirmed, the changes are saved and the user is redirected to the home page.
Changes:
- Add `_wouldLoseAccess()` check in edit-category controller that compares new permissions against the user's group memberships
- Show confirmation dialog via `dialog.yesNoConfirm()` before saving
- Redirect to home page after confirmed save (since user can no longer access the category edit page)
- Fix `onSelectGroup` to properly set `group_id` for custom groups by looking up from `site.groups` (was only working for auto groups)
Here's how the confirm dialog looks like
<img width="1606" height="1043" alt="CleanShot 2025-12-12 at 17 12 55" src="https://github.com/user-attachments/assets/86e255dc-fa5c-4fde-8c86-3d3b0e03ce89" />
Ref - https://meta.discourse.org/t/390978
1개의 좋아요