mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-23 00:13:35 +01:00
Applied patches #1151626 from Regis Leroy that allow configuration of global ACL rights on a group level (before it was only possible on a user level). This will allow to control access to the admin and monitor sections of the workflow app using its new acl hook
This commit is contained in:
parent
8299eb6aa4
commit
6212ad3c78
@ -12,6 +12,7 @@
|
||||
|
||||
class uiaccounts
|
||||
{
|
||||
//(regis) maybe some of them should be deleted?
|
||||
var $public_functions = array
|
||||
(
|
||||
'list_groups' => True,
|
||||
@ -24,6 +25,7 @@
|
||||
'edit_user_hook' => True,
|
||||
'edit_group' => True,
|
||||
'view_user' => True,
|
||||
'edit_group_hook' => True,
|
||||
'edit_view_user_hook' => True,
|
||||
'group_manager' => True,
|
||||
);
|
||||
@ -593,6 +595,24 @@
|
||||
$t->pparse('out','form');
|
||||
}
|
||||
|
||||
// (regis) why only for users, it works with groups as well so I add it
|
||||
// I use it on the workflow app to add monitoring rights for some users
|
||||
// and we could have history of connexions for members groups.
|
||||
function edit_group_hook() // (regis) why only for users, it works with groups as well so I add it
|
||||
{
|
||||
if ($_GET['account_id'] && // can't set it on add
|
||||
!$GLOBALS['phpgw']->acl->check('account_access',64,'admin')) // no rights to set ACL-rights
|
||||
{
|
||||
$GLOBALS['menuData'][] = array(
|
||||
'description' => 'ACL Rights',
|
||||
'url' => '/index.php',
|
||||
'extradata' => 'menuaction=admin.uiaclmanager.list_apps'
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
function edit_group($cd='',$account_id='')
|
||||
{
|
||||
if ($GLOBALS['phpgw']->acl->check('group_access',16,'admin'))
|
||||
|
@ -41,6 +41,7 @@
|
||||
'deleteaccount',
|
||||
'view_user' => 'admin.uiaccounts.edit_view_user_hook',
|
||||
'edit_user' => 'admin.uiaccounts.edit_view_user_hook',
|
||||
'group_manager' => 'admin.uiaccounts.edit_group_hook',
|
||||
'sidebox_menu'
|
||||
);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user