mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 16:48:49 +01:00
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:
parent
8383d58c50
commit
e457717dde
@ -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();
|
||||||
|
@ -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');
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user