allow users to change his own password

This commit is contained in:
Dietmar Maurer 2012-04-11 09:40:42 +02:00
parent 2de144076b
commit 1cf154b72f
3 changed files with 8 additions and 2 deletions

View File

@ -2,7 +2,7 @@ RELEASE=2.0
VERSION=1.0
PACKAGE=libpve-access-control
PKGREL=17
PKGREL=18
DESTDIR=
PREFIX=/usr

View 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') {

View File

@ -1,3 +1,9 @@
libpve-access-control (1.0-18) unstable; urgency=low
* allow user to change his own password
-- Proxmox Support Team <support@proxmox.com> Wed, 11 Apr 2012 09:40:15 +0200
libpve-access-control (1.0-17) unstable; urgency=low
* set propagate flag by default