]> git.proxmox.com Git - pve-access-control.git/blobdiff - PVE/RPCEnvironment.pm
allow users to change his own password
[pve-access-control.git] / PVE / RPCEnvironment.pm
index 89c4be7876f4207b218b6d87ec69e58eedd3efef..af2eee80e3ce80222595c42a42b238cd528bdbaf 100644 (file)
@@ -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') {