X-Git-Url: https://git.proxmox.com/?p=pve-access-control.git;a=blobdiff_plain;f=PVE%2FRPCEnvironment.pm;h=95d3029886183e488bd8bdbf76213f888eb8d83e;hp=c661edad906a9ef64b0c24fef193d053e9c56085;hb=b27ae8aa44d088273f09d165dedbf270de376bca;hpb=e83e0ed584a06014e25f784a0b4a51f2e368e212 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;