]> git.proxmox.com Git - pve-access-control.git/blobdiff - PVE/API2/ACL.pm
fix return value for empty ACL list
[pve-access-control.git] / PVE / API2 / ACL.pm
index c2d5665341cc6b3bbb51e96024cad537acf1ee1a..45be4ec795cd917ebebfe43d49df8e170cd639fe 100644 (file)
@@ -51,7 +51,7 @@ __PACKAGE__->register_method ({
 
        my $usercfg = $rpcenv->{user_cfg};
        if (!$usercfg || !$usercfg->{acl}) {
-           return {};
+           return $res;
        }
 
        my $audit = $rpcenv->check($authuser, '/access', ['Sys.Audit'], 1);