fix for bug #102: Inviting a group of person => Private status in calendar

This commit is contained in:
Ralf Becker 2006-12-27 12:52:04 +00:00
parent 4ba06c8a62
commit 13fa4189b2

View File

@ -922,7 +922,7 @@ class bocal
// //
foreach($event['participants'] as $uid => $accept) foreach($event['participants'] as $uid => $accept)
{ {
if ($uid == $user) if ($uid == $user || $uid < 0 && in_array($user,$GLOBALS['egw']->accounts->members($uid,true)))
{ {
// if we are a participant, we have an implicite READ and PRIVAT grant // if we are a participant, we have an implicite READ and PRIVAT grant
$grants |= EGW_ACL_READ | EGW_ACL_PRIVATE; $grants |= EGW_ACL_READ | EGW_ACL_PRIVATE;