mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-26 07:02:08 +01:00
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)
|
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;
|
||||||
@ -1353,9 +1353,6 @@ class bocal
|
|||||||
{
|
{
|
||||||
if (!is_numeric($id))
|
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))
|
if (!is_object($GLOBALS['egw']->link))
|
||||||
{
|
{
|
||||||
$GLOBALS['egw']->link =& CreateObject('phpgwapi.bolink');
|
$GLOBALS['egw']->link =& CreateObject('phpgwapi.bolink');
|
||||||
|
Loading…
Reference in New Issue
Block a user