[pve-devel] r5436 - pve-access-control/trunk/PVE/API2
svn-commits at proxmox.com
svn-commits at proxmox.com
Tue Jan 25 10:16:47 CET 2011
Author: dietmar
Date: 2011-01-25 10:16:46 +0100 (Tue, 25 Jan 2011)
New Revision: 5436
Modified:
pve-access-control/trunk/PVE/API2/ACL.pm
Log:
fix return value if no ACL
Modified: pve-access-control/trunk/PVE/API2/ACL.pm
===================================================================
--- pve-access-control/trunk/PVE/API2/ACL.pm 2011-01-25 09:00:24 UTC (rev 5435)
+++ pve-access-control/trunk/PVE/API2/ACL.pm 2011-01-25 09:16:46 UTC (rev 5436)
@@ -31,7 +31,11 @@
my $res = [];
my $usercfg = cfs_read_file("user.cfg");
-
+
+ if (!$usercfg || !$usercfg->{acl}) {
+ return {};
+ }
+
return $usercfg->{acl};
}});
More information about the pve-devel
mailing list