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:
Ralf Becker 2005-11-24 11:21:29 +00:00
parent be95952118
commit 93d581dbbe

View File

@ -270,7 +270,11 @@ class bocal
if ($params['ignore_acl'] || $this->check_perms(EGW_ACL_READ,0,$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
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,
// as calling the so-layer without users would give the events of all users (!)
if (!count($users))