diff --git a/preferences/inc/class.uipassword.inc.php b/preferences/inc/class.uipassword.inc.php index 1e01d8158c..22e89cc8ff 100644 --- a/preferences/inc/class.uipassword.inc.php +++ b/preferences/inc/class.uipassword.inc.php @@ -30,7 +30,7 @@ $n_passwd_2 = $_POST['n_passwd_2']; $o_passwd_2 = $_POST['o_passwd_2']; - if(!$GLOBALS['egw']->acl->check('changepassword', 1) || $_POST['cancel']) + if($GLOBALS['egw']->acl->check('nopasswordchange', 1) || $_POST['cancel']) { $GLOBALS['egw']->redirect_link('/preferences/index.php'); $GLOBALS['egw']->common->egw_exit(); diff --git a/preferences/inc/hook_preferences.inc.php b/preferences/inc/hook_preferences.inc.php index 8906f4a7e2..16002c2991 100644 --- a/preferences/inc/hook_preferences.inc.php +++ b/preferences/inc/hook_preferences.inc.php @@ -12,7 +12,7 @@ /* $Id$ */ - if ($GLOBALS['egw']->acl->check('changepassword',1)) + if (!$GLOBALS['egw']->acl->check('nopasswordchange',1)) { $file['Change your Password'] = $GLOBALS['egw']->link('/index.php','menuaction=preferences.uipassword.change'); }