*/
public function __construct() {
$this->publicURLs = [
- 'public-calendars'
+ 'public-calendars',
+ 'principals/system/public'
];
}
/**
* @param RequestInterface $request
- * @return array
+ * @return bool
*/
private function isRequestPublic(RequestInterface $request) {
$params = $request->getQueryParameters();
$matchingUrls = array_filter($this->publicURLs, function ($publicUrl) use ($url) {
return strpos($url, $publicUrl, 0) === 0;
});
- return $matchingUrls;
+ return !empty($matchingUrls);
}
}