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:28:47 +00:00
parent e457717dde
commit e6e05e283c
3 changed files with 9 additions and 8 deletions

View File

@ -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']);
}