mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-24 15:49:06 +01:00
re-add "Deny access" to groups
This commit is contained in:
parent
a63cfe5aa1
commit
cf519cb666
@ -128,6 +128,17 @@ class admin_ui
|
|||||||
'group' => 2,
|
'group' => 2,
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
if (!$GLOBALS['egw']->acl->check('account_access',64,'admin')) // no rights to set ACL-rights
|
||||||
|
{
|
||||||
|
$actions['deny'] = array(
|
||||||
|
'caption' => 'Deny access',
|
||||||
|
'enableId' => '^/groups/-\\d+',
|
||||||
|
'url' => 'menuaction=admin.uiaclmanager.list_apps&account_id=$id',
|
||||||
|
'onExecute' => 'javaScript:app.admin.group',
|
||||||
|
'icon' => 'cancel',
|
||||||
|
'group' => 2,
|
||||||
|
);
|
||||||
|
}
|
||||||
$group = 5; // allow to place actions in different groups by hook, this is the default
|
$group = 5; // allow to place actions in different groups by hook, this is the default
|
||||||
// supporting both old way using $GLOBALS['menuData'] and new just returning data in hook
|
// supporting both old way using $GLOBALS['menuData'] and new just returning data in hook
|
||||||
$apps = array_unique(array_merge(array('admin'), $GLOBALS['egw']->hooks->hook_implemented('edit_group')));
|
$apps = array_unique(array_merge(array('admin'), $GLOBALS['egw']->hooks->hook_implemented('edit_group')));
|
||||||
|
Loading…
Reference in New Issue
Block a user