]> git.proxmox.com Git - pve-access-control.git/commitdiff
fix PVE::AccessControl::role_is_special
authorStoiko Ivanov <s.ivanov@proxmox.com>
Thu, 21 Jun 2018 14:18:32 +0000 (16:18 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 27 Jun 2018 14:40:55 +0000 (16:40 +0200)
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>
PVE/AccessControl.pm

index f0fb7dc3873117c89cbb5dcd07e9475686add02a..0fb46b5594848fe81e957d315a87a07fa65f084e 100644 (file)
@@ -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 {