reversed password change ACL from changepassword to nopassword change, to allow eGW users created in LDAP to be full users, without the need to change/add something in the ACL table

This commit is contained in:
Ralf Becker 2006-06-23 01:27:56 +00:00
parent 8383d58c50
commit e457717dde
2 changed files with 2 additions and 2 deletions

View File

@ -30,7 +30,7 @@
$n_passwd_2 = $_POST['n_passwd_2']; $n_passwd_2 = $_POST['n_passwd_2'];
$o_passwd_2 = $_POST['o_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']->redirect_link('/preferences/index.php');
$GLOBALS['egw']->common->egw_exit(); $GLOBALS['egw']->common->egw_exit();

View File

@ -12,7 +12,7 @@
/* $Id$ */ /* $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'); $file['Change your Password'] = $GLOBALS['egw']->link('/index.php','menuaction=preferences.uipassword.change');
} }