mirror of
https://github.com/nextcloud/server.git
synced 2026-05-25 02:34:12 -04:00
Merge pull request #54427 from nextcloud/backport/54420/stable31
[stable31] perf(calendar): Disable custom properties for individual calendar events
This commit is contained in:
commit
c9f404a150
1 changed files with 6 additions and 0 deletions
|
|
@ -9,6 +9,7 @@ namespace OCA\DAV\DAV;
|
|||
|
||||
use Exception;
|
||||
use OCA\DAV\CalDAV\Calendar;
|
||||
use OCA\DAV\CalDAV\CalendarObject;
|
||||
use OCA\DAV\CalDAV\DefaultCalendarValidator;
|
||||
use OCA\DAV\Connector\Sabre\Directory;
|
||||
use OCA\DAV\Connector\Sabre\FilesPlugin;
|
||||
|
|
@ -223,6 +224,11 @@ class CustomPropertiesBackend implements BackendInterface {
|
|||
$this->cacheDirectory($path, $node);
|
||||
}
|
||||
|
||||
if ($node instanceof CalendarObject) {
|
||||
// No custom properties supported on individual events
|
||||
return;
|
||||
}
|
||||
|
||||
// First fetch the published properties (set by another user), then get the ones set by
|
||||
// the current user. If both are set then the latter as priority.
|
||||
foreach ($this->getPublishedProperties($path, $requestedProps) as $propName => $propValue) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue