mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-25 04:11:49 +02:00
fixed bug in ACL: grants from a group to an individual were not working and grants from a group to an other group were wrong
This commit is contained in:
parent
26802319b8
commit
26fd3d2b97
@ -730,8 +730,8 @@
|
|||||||
}
|
}
|
||||||
$grants[$grantor] |= $rights;
|
$grants[$grantor] |= $rights;
|
||||||
|
|
||||||
// if the right is granted to a group and we enummerated group ACL's
|
// if the right is granted from a group and we enummerated group ACL's
|
||||||
if ($granted_to != $this->account_id && $enum_group_acls)
|
if ($GLOBALS['egw']->accounts->get_type($grantor) == 'g' && $enum_group_acls)
|
||||||
{
|
{
|
||||||
// return the grant for each member of the group
|
// return the grant for each member of the group
|
||||||
foreach((array)$GLOBALS['egw']->accounts->member($grantor) as $member)
|
foreach((array)$GLOBALS['egw']->accounts->member($grantor) as $member)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user