From: Dietmar Maurer Date: Wed, 11 Apr 2012 07:40:42 +0000 (+0200) Subject: allow users to change his own password X-Git-Url: https://git.proxmox.com/?p=pve-access-control.git;a=commitdiff_plain;h=1cf154b72fa1c576bdae00b24538c1dbd7c33ba0 allow users to change his own password --- diff --git a/Makefile b/Makefile index cb543ea..eb163d6 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ RELEASE=2.0 VERSION=1.0 PACKAGE=libpve-access-control -PKGREL=17 +PKGREL=18 DESTDIR= PREFIX=/usr 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') { diff --git a/changelog.Debian b/changelog.Debian index 97770d4..26dff07 100644 --- a/changelog.Debian +++ b/changelog.Debian @@ -1,3 +1,9 @@ +libpve-access-control (1.0-18) unstable; urgency=low + + * allow user to change his own password + + -- Proxmox Support Team Wed, 11 Apr 2012 09:40:15 +0200 + libpve-access-control (1.0-17) unstable; urgency=low * set propagate flag by default