diff --git a/preferences/inc/class.preferences_password.inc.php b/preferences/inc/class.preferences_password.inc.php index 681928cc9c..b9ecaf2458 100644 --- a/preferences/inc/class.preferences_password.inc.php +++ b/preferences/inc/class.preferences_password.inc.php @@ -74,7 +74,7 @@ class preferences_password switch($content['tabs']) { case 'change_password': - if ($GLOBALS['egw']->acl->check('nopasswordchange', 1) && $content['button']['save']) + if (!$GLOBALS['egw']->acl->check('nopasswordchange', 1) && $content['button']['save']) { if (($errors = self::do_change($content['password'], $content['n_passwd'], $content['n_passwd_2']))) {