Don't allow support to set ranks for admin+ or content users
This commit is contained in:
parent
14daa939e3
commit
5c6a9ea879
@ -101,6 +101,12 @@ public class SupportRankListPage extends SupportPage
|
||||
|
||||
private void handleGroupSet(PermissionGroup group)
|
||||
{
|
||||
if (_target.inheritsFrom(PermissionGroup.ADMIN) || _target.inheritsFrom(PermissionGroup.CONTENT))
|
||||
{
|
||||
message("You can't set this user's rank!");
|
||||
return;
|
||||
}
|
||||
|
||||
getPlugin().getClientManager().setPrimaryGroup(_target.getAccountId(), group, () -> {
|
||||
message("You have applied the rank " + group.getDisplay(true, true, true, true).toUpperCase() + C.mBody + " to " + C.cYellow + _target.getName());
|
||||
_target.setPrimaryGroup(group);
|
||||
|
Loading…
Reference in New Issue
Block a user