Allow admins to admin

Remove check for SA only to admin
This commit is contained in:
ChocoTaco 2022-04-13 16:42:15 -04:00
parent a9dc89f051
commit c13a7588e0

View file

@ -322,10 +322,10 @@ function serverCmdStartNewVote(%client, %typeName, %arg1, %arg2, %arg3, %arg4, %
if(%arg1.isAdmin) // target is already an admin if(%arg1.isAdmin) // target is already an admin
return; // can't vote to admin an admin! return; // can't vote to admin an admin!
if(%client.isAdmin) // our pal is an admin if(%client.isAdmin && !%client.isSuperAdmin) // our pal is an admin (no superadmins)
{ {
if(!%client.isSuperAdmin) // ... but not a super admin if(!$Host::AllowAdmin2Admin)
return; // insufficient privileges return;
} }
else // not an admin else // not an admin
{ {