mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-07 16:44:07 +01:00
When editing a user or group's preferences, limit app selection to just those apps the account has access to.
This commit is contained in:
parent
407efdbcaf
commit
f60e402eb0
@ -429,6 +429,10 @@ class preferences_settings
|
||||
{
|
||||
$content['type'] .= ':'.$id;
|
||||
$sel_options['type'][$content['type']] = common::grab_owner_name($GLOBALS['egw']->preferences->account_id);
|
||||
|
||||
// Restrict app list to apps the user has access to
|
||||
$user_apps = $GLOBALS['egw']->acl->get_user_applications($id);
|
||||
$sel_options['appname'] = array_intersect_key($sel_options['appname'], $user_apps);
|
||||
}
|
||||
foreach($GLOBALS['egw']->accounts->search(array('type' => 'groups', 'sort' => 'account_lid')) as $account_id => $group)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user