forked from extern/egroupware
fix for bug #102: Inviting a group of person => Private status in calendar
This commit is contained in:
parent
0597fc6cd9
commit
512fbe3b7f
@ -935,7 +935,7 @@ class bocal
|
||||
//
|
||||
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
|
||||
$grants |= EGW_ACL_READ | EGW_ACL_PRIVATE;
|
||||
@ -1353,9 +1353,6 @@ class bocal
|
||||
{
|
||||
if (!is_numeric($id))
|
||||
{
|
||||
/* $res_info = $this->resource_info($id);
|
||||
$id2lid[$id] = $res_info && isset($res_info['name']) ? $res_info['name'] : "resource($id)";
|
||||
*/
|
||||
if (!is_object($GLOBALS['egw']->link))
|
||||
{
|
||||
$GLOBALS['egw']->link =& CreateObject('phpgwapi.bolink');
|
||||
|
Loading…
Reference in New Issue
Block a user