X-Git-Url: https://git.proxmox.com/?p=pve-access-control.git;a=blobdiff_plain;f=PVE%2FRPCEnvironment.pm;h=af2eee80e3ce80222595c42a42b238cd528bdbaf;hp=89c4be7876f4207b218b6d87ec69e58eedd3efef;hb=1cf154b72fa1c576bdae00b24538c1dbd7c33ba0;hpb=2de144076b1dcd0b2544c4f24743cb19e30a541b diff --git a/PVE/RPCEnvironment.pm b/PVE/RPCEnvironment.pm index 89c4be7..af2eee8 100644 --- a/PVE/RPCEnvironment.pm +++ b/PVE/RPCEnvironment.pm @@ -428,7 +428,7 @@ sub exec_api2_perm_check { die "missing parameters" if !$subtest; if ($subtest eq 'self') { return 0 if !$self->check_user_exist($userid, $noerr); - return 1 if $username eq 'userid'; + return 1 if $username eq $userid; return 0 if $noerr; raise_perm_exc(); } elsif ($subtest eq 'Realm.AllocateUser') {