Skip to content

Fix: Make permission group operations case-insensitive (#107)#135

Merged
sunnamed434 merged 2 commits intoRocketModFix:masterfrom
Nonanti:fix/permission-removal-case-sensitive
Aug 24, 2025
Merged

Fix: Make permission group operations case-insensitive (#107)#135
sunnamed434 merged 2 commits intoRocketModFix:masterfrom
Nonanti:fix/permission-removal-case-sensitive

Conversation

@Nonanti
Copy link

@Nonanti Nonanti commented Aug 23, 2025

Summary

  • Fixed permission removal/addition operations to be case-insensitive
  • Resolves issue where group permissions couldn't be removed due to case sensitivity

Changes

  • Updated RemovePlayerFromGroup to use StringComparison.CurrentCultureIgnoreCase
  • Updated AddPlayerToGroup duplicate check to be case-insensitive
  • Updated GetGroups member lookup to be case-insensitive

Testing

  • Built successfully with no errors
  • All permission operations now work regardless of case

Fixes #107

- Fixed RemovePlayerFromGroup to use case-insensitive comparison
- Fixed AddPlayerToGroup duplicate check to be case-insensitive
- Fixed GetGroups member lookup to be case-insensitive
- Fixed SaveGroup and AddGroup to use case-insensitive ID comparison
- Resolves issue RocketModFix#107 where permissions couldn't be removed due to case sensitivity
@Nonanti Nonanti force-pushed the fix/permission-removal-case-sensitive branch from f307818 to bbe8c85 Compare August 23, 2025 12:14
sunnamed434
sunnamed434 previously approved these changes Aug 23, 2025
Copy link
Member

@sunnamed434 sunnamed434 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

@sunnamed434
Copy link
Member

@rocketmodfix/rmfixteam what do you think guys? For me it looks good.

@sunnamed434 sunnamed434 merged commit af07cb1 into RocketModFix:master Aug 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Can't remove permission via command

2 participants