mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-08-09 16:35:02 +02:00
Access dialog
- If current app has no special support, show general dialog instead of message - Sort apps in add dialog - Filter app list (filter2) to all apps for run rights, or only supporting apps otherwise
This commit is contained in:
@ -447,11 +447,17 @@ app.classes.admin = AppJS.extend(
|
||||
else
|
||||
{
|
||||
// Restrict application selectbox to only apps that support ACL
|
||||
sel_options.acl_appname = {};
|
||||
sel_options.acl_appname = [];
|
||||
for(var app in acl_rights)
|
||||
{
|
||||
sel_options.acl_appname[app] = this.egw.lang(app);
|
||||
sel_options.acl_appname.push({value: app, label: this.egw.lang(app)});
|
||||
}
|
||||
// Sort list
|
||||
sel_options.acl_appname.sort(function(a,b) {
|
||||
if(a.label > b.label) return 1;
|
||||
if(a.label < b.label) return -1;
|
||||
return 0;
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user