open preferences and ACL in a popup (ACL still needs a little more work: use et2_dialog to add/edit instead of an other popup)

This commit is contained in:
Ralf Becker
2014-04-01 15:49:08 +00:00
parent 4c52fe5e65
commit 6fdf8c98d1
9 changed files with 36 additions and 46 deletions

View File

@@ -185,12 +185,21 @@ class admin_hooks
{
$actions = array();
$actions[] = array(
'id' => 'acl',
'caption' => 'Access control',
'url' => 'menuaction=admin.admin_acl.index&account_id=$id',
'popup' => '900x450',
'icon' => 'lock',
);
if (!$GLOBALS['egw']->acl->check('current_sessions_access',1,'admin')) // no rights to view
{
$actions[] = array(
'description' => 'Login History',
'url' => '/index.php',
'extradata' => 'menuaction=admin.admin_accesslog.index'
'extradata' => 'menuaction=admin.admin_accesslog.index',
'icon' => 'timesheet',
);
}
@@ -199,7 +208,8 @@ class admin_hooks
$actions[] = array(
'description' => 'Deny access',
'url' => '/index.php',
'extradata' => 'menuaction=admin.uiaclmanager.list_apps'
'extradata' => 'menuaction=admin.uiaclmanager.list_apps',
'icon' => 'cancel',
);
}
return $actions;