Skip to content

Comments

Prevent moderators from updating and punishing other mods and admins#1031

Merged
Toastbrot236 merged 3 commits intoLittleBigRefresh:mainfrom
Toastbrot236:user-edit-another-fix
Feb 21, 2026
Merged

Prevent moderators from updating and punishing other mods and admins#1031
Toastbrot236 merged 3 commits intoLittleBigRefresh:mainfrom
Toastbrot236:user-edit-another-fix

Conversation

@Toastbrot236
Copy link
Contributor

@Toastbrot236 Toastbrot236 commented Feb 21, 2026

Doesn't prevent mods from doing anything else against other mods and admins (they may still moderate their levels and other similar content), but mods may no longer restrict, ban, delete, update, rename and reset the password of other mods and admins. Admins may still do anything to other admins.
This PR also adds tests for the above.

Edit: This now also prevents unpunished users from being pardoned, since that always sets the target user's role to user, meaning that users with a higher role could have their role set back to user this way.

@Toastbrot236 Toastbrot236 merged commit 0ac60b1 into LittleBigRefresh:main Feb 21, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant