mirror of
https://git.proxmox.com/git/pve-access-control
synced 2025-07-09 04:45:18 +00:00
fix PVE::AccessControl::role_is_special
PVE::AccessControl::role_is_special now returns 0 instead of '' for false (Schemavalidation did complain about '') Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
This commit is contained in:
parent
e53af3dbf6
commit
b7ba86d426
@ -501,7 +501,7 @@ create_roles();
|
||||
|
||||
sub role_is_special {
|
||||
my ($role) = @_;
|
||||
return exists $special_roles->{$role};
|
||||
return (exists $special_roles->{$role}) ? 1 : 0;
|
||||
}
|
||||
|
||||
sub add_role_privs {
|
||||
|
Loading…
Reference in New Issue
Block a user