From 4384e19e9b1a6d3b3767ed446ae158e25791d73c Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Fri, 10 Feb 2012 11:25:23 +0100 Subject: [PATCH] fix return value for empty ACL list --- Makefile | 2 +- PVE/API2/ACL.pm | 2 +- changelog.Debian | 6 ++++++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index bf294ca..fbe521e 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ RELEASE=2.0 VERSION=1.0 PACKAGE=libpve-access-control -PKGREL=7 +PKGREL=8 DESTDIR= PREFIX=/usr diff --git a/PVE/API2/ACL.pm b/PVE/API2/ACL.pm index c2d5665..45be4ec 100644 --- a/PVE/API2/ACL.pm +++ b/PVE/API2/ACL.pm @@ -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); diff --git a/changelog.Debian b/changelog.Debian index 54bb9b8..082c378 100644 --- a/changelog.Debian +++ b/changelog.Debian @@ -1,3 +1,9 @@ +libpve-access-control (1.0-8) unstable; urgency=low + + * fix return value for empty ACL list. + + -- Proxmox Support Team Fri, 10 Feb 2012 11:25:04 +0100 + libpve-access-control (1.0-7) unstable; urgency=low * fix bug #85: allow root@pam to generate tickets for other users -- 2.39.2