mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-08-18 12:30: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:
@@ -116,7 +116,7 @@ egw.extend('preferences', egw.MODULE_GLOBAL, function() {
|
||||
var current_app = this.app_name();
|
||||
var query = {current_app: current_app};
|
||||
// give warning, if app does not support given type, but all apps link to common prefs, if they dont support prefs themselfs
|
||||
if ($j.isArray(apps) && $j.inArray(current_app, apps) == -1 && name != 'prefs' ||
|
||||
if ($j.isArray(apps) && $j.inArray(current_app, apps) == -1 && (name != 'prefs' && name != 'acl') ||
|
||||
!$j.isArray(apps) && (typeof apps[current_app] == 'undefined' || !apps[current_app]))
|
||||
{
|
||||
egw_message(egw.lang('Not supported by current application!'), 'warning');
|
||||
@@ -134,7 +134,7 @@ egw.extend('preferences', egw.MODULE_GLOBAL, function() {
|
||||
|
||||
case 'acl':
|
||||
query.menuaction='preferences.preferences_acl.index';
|
||||
query.acl_app=current_app;
|
||||
if ($j.inArray(current_app, apps) != -1) query.acl_app=current_app;
|
||||
egw.open_link(egw.link(url, query), '_blank', '900x450');
|
||||
break;
|
||||
|
||||
|
Reference in New Issue
Block a user