mirror of
https://github.com/ChocoTaco1/TacoServer.git
synced 2026-07-16 00:24:35 +00:00
Allow admins to admin
Remove check for SA only to admin
This commit is contained in:
parent
a9dc89f051
commit
c13a7588e0
1 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue