X-Git-Url: https://git.proxmox.com/?p=pve-access-control.git;a=blobdiff_plain;f=PVE%2FRPCEnvironment.pm;fp=PVE%2FRPCEnvironment.pm;h=95d3029886183e488bd8bdbf76213f888eb8d83e;hp=c661edad906a9ef64b0c24fef193d053e9c56085;hb=d146e52028241dc32aa1d57e3e88c4aa3b77d654;hpb=63358f40b36266a1d9df2fbb8477935d16b5f1c5 diff --git a/PVE/RPCEnvironment.pm b/PVE/RPCEnvironment.pm index c661eda..95d3029 100644 --- 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;