forked from extern/egroupware
fix to use groups in search, even if you have no read-rights from the group, but from some if it's memebers
This commit is contained in:
parent
be95952118
commit
93d581dbbe
@ -270,7 +270,11 @@ class bocal
|
|||||||
if ($params['ignore_acl'] || $this->check_perms(EGW_ACL_READ,0,$user))
|
if ($params['ignore_acl'] || $this->check_perms(EGW_ACL_READ,0,$user))
|
||||||
{
|
{
|
||||||
$users[] = $user;
|
$users[] = $user;
|
||||||
|
}
|
||||||
|
elseif ($GLOBALS['egw']->accounts->get_type($user) != 'g')
|
||||||
|
{
|
||||||
|
continue; // for non-groups (eg. users), we stop here if we have no read-rights
|
||||||
|
}
|
||||||
// for groups we have to include the members
|
// for groups we have to include the members
|
||||||
if ($GLOBALS['egw']->accounts->get_type($user) == 'g')
|
if ($GLOBALS['egw']->accounts->get_type($user) == 'g')
|
||||||
{
|
{
|
||||||
@ -303,7 +307,6 @@ class bocal
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
// if we have no grants from the given user(s), we directly return no events / an empty array,
|
// if we have no grants from the given user(s), we directly return no events / an empty array,
|
||||||
// as calling the so-layer without users would give the events of all users (!)
|
// as calling the so-layer without users would give the events of all users (!)
|
||||||
if (!count($users))
|
if (!count($users))
|
||||||
|
Loading…
Reference in New Issue
Block a user