mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-17 10:51:38 +01:00
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
fa58c2adc4
commit
c5d35520d7
@ -1017,6 +1017,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
|
||||
@ -1066,6 +1070,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