zio fork 1.8.2b-zio9: admin menu honours command overrides, @zio/penalties
Some checks are pending
Build and Publish / build (push) Waiting to run
Build and Publish / publish (push) Blocked by required conditions

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:
Astra 2026-09-29 12:44:15 +01:00
parent 65a413fa52
commit cf1090cbd2
6 changed files with 38 additions and 15 deletions

View file

@ -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))
{