mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-08-17 03:51:21 +02: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:
@ -730,13 +730,13 @@
|
||||
{
|
||||
$acl->delete_repository('phpgwapi','anonymous',$_userData['account_id']);
|
||||
}
|
||||
if ($_userData['changepassword'])
|
||||
if (!$_userData['changepassword'])
|
||||
{
|
||||
$GLOBALS['egw']->acl->add_repository('preferences','changepassword',$_userData['account_id'],1);
|
||||
$GLOBALS['egw']->acl->add_repository('preferences','nopasswordchange',$_userData['account_id'],1);
|
||||
}
|
||||
else
|
||||
{
|
||||
$GLOBALS['egw']->acl->delete_repository('preferences','changepassword',$_userData['account_id']);
|
||||
$GLOBALS['egw']->acl->delete_repository('preferences','nopasswordchange',$_userData['account_id']);
|
||||
}
|
||||
$GLOBALS['egw']->session->delete_cache((int)$_userData['account_id']);
|
||||
}
|
||||
|
Reference in New Issue
Block a user