projects
/
pve-access-control.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
63358f4
)
check_api2_permissions: avoid warning about uninitialized value
author
Dietmar Maurer
<dietmar@proxmox.com>
Fri, 31 Mar 2017 15:05:52 +0000
(17:05 +0200)
committer
Dietmar Maurer
<dietmar@proxmox.com>
Fri, 31 Mar 2017 15:05:52 +0000
(17:05 +0200)
PVE/RPCEnvironment.pm
patch
|
blob
|
blame
|
history
diff --git
a/PVE/RPCEnvironment.pm
b/PVE/RPCEnvironment.pm
index c661edad906a9ef64b0c24fef193d053e9c56085..95d3029886183e488bd8bdbf76213f888eb8d83e 100644
(file)
--- a/
PVE/RPCEnvironment.pm
+++ b/
PVE/RPCEnvironment.pm
@@
-351,7
+351,7
@@
sub exec_api2_perm_check {
sub check_api2_permissions {
my ($self, $perm, $username, $param) = @_;
- return 1 if !$username && $perm->{user} eq 'world';
+ return 1 if !$username && $perm->{user}
&& $perm->{user}
eq 'world';
raise_perm_exc("user != null") if !$username;