forked from extern/egroupware
fixed http status "400 Something went wrong" on PUT request in CalDAV, if user has no explicit FREEBUSY rights for calendar of modified event
This commit is contained in:
parent
53374d91fb
commit
ca4f237dc4
@ -1083,6 +1083,10 @@ class calendar_bo
|
||||
$private = !$event['public'];
|
||||
}
|
||||
$grants = $this->grants[$owner];
|
||||
|
||||
// now any ACL rights implicate FREEBUSY rights (at least READ has to include FREEBUSY)
|
||||
if ($grants) $grants |= EGW_ACL_FREEBUSY;
|
||||
|
||||
if (is_array($event) && ($needed == EGW_ACL_READ || $needed == EGW_ACL_FREEBUSY))
|
||||
{
|
||||
// Check if the $user is one of the participants or has a read-grant from one of them
|
||||
@ -1132,6 +1136,7 @@ class calendar_bo
|
||||
{
|
||||
$this->debug_message('bocal::check_perms(%1,%2,%3)=%4',True,ACL_TYPE_IDENTIFER.$needed,$event,$other,$access);
|
||||
}
|
||||
//error_log(__METHOD__."($needed,".array2string($event).",$other) returning ".array2string($access));
|
||||
return $access;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user