mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-21 05:19:07 +01:00
* Calendar: fixed typo in merge, denying implicit participants rights eg. required to accept a meeting
This commit is contained in:
parent
ef559e486a
commit
d8ecd9af9e
@ -1133,7 +1133,7 @@ class calendar_bo
|
|||||||
if ($uid == $this->user || $uid < 0 && in_array($this->user,$GLOBALS['egw']->accounts->members($uid,true)))
|
if ($uid == $this->user || $uid < 0 && in_array($this->user,$GLOBALS['egw']->accounts->members($uid,true)))
|
||||||
{
|
{
|
||||||
// if we are a participant, we have an implicite FREEBUSY, READ and PRIVAT grant
|
// if we are a participant, we have an implicite FREEBUSY, READ and PRIVAT grant
|
||||||
$grant |= EGW_ACL_FREEBUSY | EGW_ACL_READ | EGW_ACL_PRIVATE;
|
$grants |= EGW_ACL_FREEBUSY | EGW_ACL_READ | EGW_ACL_PRIVATE;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
elseif ($this->grants[$uid] & EGW_ACL_READ)
|
elseif ($this->grants[$uid] & EGW_ACL_READ)
|
||||||
@ -1578,7 +1578,7 @@ class calendar_bo
|
|||||||
{
|
{
|
||||||
$arr = &$users;
|
$arr = &$users;
|
||||||
}
|
}
|
||||||
|
|
||||||
$arr[$name] = Array(
|
$arr[$name] = Array(
|
||||||
'grantor' => $id,
|
'grantor' => $id,
|
||||||
'value' => ($type == 'g' ? 'g_' : '') . $id,
|
'value' => ($type == 'g' ? 'g_' : '') . $id,
|
||||||
@ -1623,7 +1623,7 @@ class calendar_bo
|
|||||||
}
|
}
|
||||||
uksort($users,'strnatcasecmp');
|
uksort($users,'strnatcasecmp');
|
||||||
uksort($groups,'strnatcasecmp');
|
uksort($groups,'strnatcasecmp');
|
||||||
|
|
||||||
return $users + $groups; // users first and then groups, both alphabeticaly
|
return $users + $groups; // users first and then groups, both alphabeticaly
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user