forked from extern/egroupware
Changes to ACL dialog based on list filter:
- If '... run rights to other applications', show current apps with run rights for the account - For others, restrict application selectbox options to just applications that support ACL
This commit is contained in:
parent
21e5eb79dd
commit
a8a578962c
@ -469,6 +469,7 @@ class admin_acl
|
||||
), array(), true),
|
||||
);
|
||||
$user = common::grab_owner_name($content['nm']['account_id']);
|
||||
$content['acl_apps'] = $GLOBALS['egw']->acl->get_app_list_for_id('run', acl::READ, $account_id);
|
||||
$sel_options = array(
|
||||
'filter' => array(
|
||||
'other' => lang('Access to %1 data by others', $user),
|
||||
|
@ -391,7 +391,21 @@ app.classes.admin = AppJS.extend(
|
||||
}
|
||||
if(!content.acl_location)
|
||||
{
|
||||
content.acl_location = this.et2.getWidgetById('filter2').getValue() == 'run' ? 'run' : null;
|
||||
content.acl_location = this.et2.getWidgetById('filter').getValue() == 'run' ? 'run' : null;
|
||||
}
|
||||
if(content.acl_location == 'run')
|
||||
{
|
||||
// These are the apps the account has access to
|
||||
content.apps = this.et2.getArrayMgr('content').getEntry('acl_apps')||'';
|
||||
}
|
||||
else
|
||||
{
|
||||
// Restrict application selectbox to only apps that support ACL
|
||||
sel_options.acl_appname = {};
|
||||
for(var app in acl_rights)
|
||||
{
|
||||
sel_options.acl_appname[app] = this.egw.lang(app);
|
||||
}
|
||||
}
|
||||
if(!content.acl_account)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user