Skip to content

Conversation

@ZogStriP
Copy link
Member

When moderators (with moderators_manage_groups enabled) change a group's visibility or members visibility to "Owners only" while not being an owner themselves, they would permanently lose access to manage that group. Similarly, removing themselves as owner when visibility is set to "Owners only" would lock them out.

This adds confirmation dialogs warning moderators before:

  • Changing group visibility to "Owners only"
  • Changing members visibility to "Owners only"
  • Removing themselves as owner when visibility is restrictive
  • Removing themselves as member when they're also an owner

Also refactors the category lockout code from PR #36663 to use async/await for consistency.

Ref: https://meta.discourse.org/t/391403

When moderators (with `moderators_manage_groups` enabled) change a
group's visibility or members visibility to "Owners only" while not
being an owner themselves, they would permanently lose access to
manage that group. Similarly, removing themselves as owner when
visibility is set to "Owners only" would lock them out.

This adds confirmation dialogs warning moderators before:
- Changing group visibility to "Owners only"
- Changing members visibility to "Owners only"
- Removing themselves as owner when visibility is restrictive
- Removing themselves as member when they're also an owner

Also refactors the category lockout code from PR #36663 to use
async/await for consistency.

Ref: https://meta.discourse.org/t/391403
Ref: #36663
@github-actions github-actions bot added the i18n PRs which update English locale files or i18n related code label Dec 19, 2025
@discoursebot
Copy link

This pull request has been mentioned on Discourse Meta. There might be relevant details there:

https://meta.discourse.org/t/moderators-can-change-groups-such-that-they-lose-access/391403/3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

i18n PRs which update English locale files or i18n related code

Development

Successfully merging this pull request may close these issues.

3 participants