zio fork 1.8.2b-zio9: admin menu honours command overrides, @zio/penalties
Every player and server entry in the admin menu names its command, and an overridden entry is
checked with the override's check_type ("any" passes with one flag), the way CSS checks the typed
command; upstream required every flag. css_penalties for someone else needs @zio/penalties or
@css/root instead of @css/kick.
This commit is contained in:
parent
65a413fa52
commit
cf1090cbd2
6 changed files with 38 additions and 15 deletions
|
|
@ -219,8 +219,9 @@ public class MenuManager
|
|||
// Check if command has overridden permissions
|
||||
if (AdminManager.CommandIsOverriden(commandName))
|
||||
{
|
||||
var overriddenPermission = AdminManager.GetPermissionOverrides(commandName);
|
||||
hasPermission = AdminManager.PlayerHasPermissions(steamId, overriddenPermission);
|
||||
// zio: honour the override's check_type ("any" passes with one flag), as CSS does
|
||||
// for the typed command, instead of requiring every flag.
|
||||
hasPermission = Helper.CanRunOverriddenCommand(player, commandName);
|
||||
}
|
||||
else if (!string.IsNullOrEmpty(permission))
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue