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:
Nathan Gray
2014-04-28 16:19:39 +00:00
parent 21e5eb79dd
commit a8a578962c
2 changed files with 16 additions and 1 deletions

View File

@ -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)
{