From 079452a76e2518cac9a98285512204d4bbf14049 Mon Sep 17 00:00:00 2001 From: cajus Date: Mon, 21 Aug 2006 12:28:30 +0000 Subject: [PATCH] Fixed password changer git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4496 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/users/class_userManagement.inc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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(); -- 2.30.2