From: cajus Date: Mon, 21 Aug 2006 12:28:30 +0000 (+0000) Subject: Fixed password changer X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=079452a76e2518cac9a98285512204d4bbf14049;p=gosa.git Fixed password changer git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4496 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/users/class_userManagement.inc b/plugins/admin/users/class_userManagement.inc index a0630f10d..cc6fc5f06 100644 --- a/plugins/admin/users/class_userManagement.inc +++ b/plugins/admin/users/class_userManagement.inc @@ -202,7 +202,11 @@ class userManagement extends plugin if (isset($_POST['password_finish'])){ /* For security reasons, check if user is allowed to set password again */ - if (chkacl($this->acl, "password") == "" || chkacl($this->acl, "create")){ + $ui= get_userinfo(); + $acl= $ui->get_permissions($this->dn, "users/user", 'userPassword'); + $cacl= $ui->get_permissions($this->dn, "users/all"); + + if (preg_match('/w/', $acl) || preg_match('/c/', $cacl)){ /* Check input and feed errors into 'message' */ $message= array();