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:
Ralf Becker 2010-10-21 15:30:20 +00:00
parent 53374d91fb
commit ca4f237dc4

View File

@ -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;
}