fixed per-group command overrides not working
--HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401306
This commit is contained in:
parent
2ff8d1776e
commit
a53d103507
@ -356,13 +356,9 @@ bool ConCmdManager::CheckCommandAccess(int client, const char *cmd, FlagBits cmd
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* See if our other flags match */
|
/* Check for overrides
|
||||||
if ((bits & cmdflags) == cmdflags)
|
* :TODO: is it worth optimizing this?
|
||||||
{
|
*/
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Check for overrides */
|
|
||||||
unsigned int groups = g_Admins.GetAdminGroupCount(adm);
|
unsigned int groups = g_Admins.GetAdminGroupCount(adm);
|
||||||
GroupId gid;
|
GroupId gid;
|
||||||
OverrideRule rule;
|
OverrideRule rule;
|
||||||
@ -383,10 +379,16 @@ bool ConCmdManager::CheckCommandAccess(int client, const char *cmd, FlagBits cmd
|
|||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
} else if (rule == Command_Deny) {
|
} else if (rule == Command_Deny) {
|
||||||
break;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* See if our other flags match */
|
||||||
|
if ((bits & cmdflags) == cmdflags)
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user