mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 00:54:50 +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
a81e83a6e6
commit
d79a1740be
@ -1129,12 +1129,8 @@ class calendar_bo
|
||||
{
|
||||
if ($uid == $user || $uid < 0 && in_array($user,$GLOBALS['egw']->accounts->members($uid,true)))
|
||||
{
|
||||
$grant |= EGW_ACL_FREEBUSY;
|
||||
// if we are a participant, we have an implicite READ and PRIVAT grant
|
||||
// exept the group gives its members only EGW_ACL_FREEBUSY and the participant is not the current user
|
||||
if ($grants[$uid] == EGW_ACL_FREEBUSY && $uid != $user) continue;
|
||||
|
||||
$grant |= EGW_ACL_READ | EGW_ACL_PRIVATE;
|
||||
// if we are a participant, we have an implicite FREEBUSY, READ and PRIVAT grant
|
||||
$grant |= EGW_ACL_FREEBUSY | EGW_ACL_READ | EGW_ACL_PRIVATE;
|
||||
break;
|
||||
}
|
||||
elseif ($grants[$uid] & EGW_ACL_READ)
|
||||
|
Loading…
Reference in New Issue
Block a user