Create per-user application acl if no groups selected for modify

This commit is contained in:
Miles Lott 2001-08-02 09:33:24 +00:00
parent e9635e2082
commit b85362ba1b

View File

@ -302,6 +302,19 @@
$acl->account_id = intval($thisacctid); $acl->account_id = intval($thisacctid);
$acl->read_repository(); $acl->read_repository();
/*
However, if no groups were imported, we do need to give each user
apps access
*/
if(!$ldapgroups)
{
@reset($s_apps);
while (list($key,$app) = @each($s_apps))
{
$acl->delete($app,'run',1);
$acl->add($app,'run',1);
}
}
// Now add the acl to let them change their password // Now add the acl to let them change their password
$acl->delete('preferences','changepassword',1); $acl->delete('preferences','changepassword',1);
$acl->add('preferences','changepassword',1); $acl->add('preferences','changepassword',1);