mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-27 09:09:04 +01:00
fix not able to set invite rights for groups in calendar
if invite enabled only for groups
This commit is contained in:
parent
767ff5d900
commit
6434455bab
@ -356,10 +356,13 @@ class admin_acl
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$right_list = Api\Hooks::single(array('location' => 'acl_rights'), $app);
|
$right_list = Api\Hooks::single(array(
|
||||||
|
'location' => 'acl_rights',
|
||||||
|
'owner' => $location,
|
||||||
|
), $app);
|
||||||
}
|
}
|
||||||
$current = (int)$acl->get_specific_rights_for_account($account_id,$location,$app);
|
$current = (int)$acl->get_specific_rights_for_account($account_id,$location,$app);
|
||||||
foreach((array)$right_list as $right => $name)
|
foreach(array_keys((array)$right_list) as $right)
|
||||||
{
|
{
|
||||||
$have_it = !!($current & $right);
|
$have_it = !!($current & $right);
|
||||||
$set_it = !!($rights & $right);
|
$set_it = !!($rights & $right);
|
||||||
|
Loading…
Reference in New Issue
Block a user