mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-17 20:21:18 +01:00
* Calendar: fixed not working accept/reject of invitations, if participant is in a group with only a freebusy grant
- previouse prevented that, thought we dont know why it was implemented that way
This commit is contained in:
parent
cb95b96180
commit
09bf4690e1
@ -1090,12 +1090,8 @@ 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)))
|
||||||
{
|
{
|
||||||
$grants |= EGW_ACL_FREEBUSY;
|
// if we are a participant, we have an implicite FREEBUSY, READ and PRIVAT grant
|
||||||
// if we are a participant, we have an implicite READ and PRIVAT grant
|
$grant |= EGW_ACL_FREEBUSY | EGW_ACL_READ | EGW_ACL_PRIVATE;
|
||||||
// exept the group gives its members only EGW_ACL_FREEBUSY and the participant is not the current user
|
|
||||||
if ($this->grants[$uid] == EGW_ACL_FREEBUSY && $uid != $this->user) continue;
|
|
||||||
|
|
||||||
$grants |= EGW_ACL_READ | EGW_ACL_PRIVATE;
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
elseif ($this->grants[$uid] & EGW_ACL_READ)
|
elseif ($this->grants[$uid] & EGW_ACL_READ)
|
||||||
|
Loading…
Reference in New Issue
Block a user