mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 06:30:59 +01:00
Fix not possible to add run permissions via group->access permissions
This commit is contained in:
parent
c93d7e524c
commit
f5b9aa3992
@ -350,9 +350,16 @@ class admin_acl
|
||||
|
||||
$acl = $GLOBALS['egw']->acl;
|
||||
|
||||
$right_list = Api\Hooks::single(array('location' => 'acl_rights'), $app);
|
||||
if($location == 'run')
|
||||
{
|
||||
$right_list = array(1 => 'run');
|
||||
}
|
||||
else
|
||||
{
|
||||
$right_list = Api\Hooks::single(array('location' => 'acl_rights'), $app);
|
||||
}
|
||||
$current = (int)$acl->get_specific_rights_for_account($account_id,$location,$app);
|
||||
foreach($right_list as $right => $name)
|
||||
foreach((array)$right_list as $right => $name)
|
||||
{
|
||||
$have_it = !!($current & $right);
|
||||
$set_it = !!($rights & $right);
|
||||
|
@ -92,8 +92,12 @@ class admin_cmd_acl extends admin_cmd
|
||||
function __tostring()
|
||||
{
|
||||
$rights = $this->rights;
|
||||
$location = $this->location;
|
||||
$location = lang($this->location);
|
||||
|
||||
if($this->location == 'run')
|
||||
{
|
||||
$rights = lang('run');
|
||||
}
|
||||
$names = Api\Hooks::single(array(
|
||||
'location' => 'acl_rights'
|
||||
), $this->app);
|
||||
|
Loading…
Reference in New Issue
Block a user