Skip to content

Commit ebdc8ec

Browse files
Merge pull request #66299 from nextcloud/backport/66215/stable29
[stable29] fix(dav): do not grant write-properties to read-only calendar delegates
2 parents 9aa19cb + b556529 commit ebdc8ec

2 files changed

Lines changed: 0 additions & 12 deletions

File tree

‎apps/dav/lib/CalDAV/Calendar.php‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -168,12 +168,6 @@ public function getACL() {
168168
];
169169
}
170170

171-
$acl[] = [
172-
'privilege' => '{DAV:}write-properties',
173-
'principal' => $this->getOwner() . '/calendar-proxy-read',
174-
'protected' => true,
175-
];
176-
177171
if (!$this->isShared()) {
178172
return $acl;
179173
}

‎apps/dav/tests/unit/CalDAV/CalendarTest.php‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -253,12 +253,6 @@ public function testAcl($expectsWrite, $readOnlyValue, $hasOwnerSet, $uri = 'def
253253
];
254254
}
255255

256-
$expectedAcl[] = [
257-
'privilege' => '{DAV:}write-properties',
258-
'principal' => ($hasOwnerSet ? 'user1' : 'user2') . '/calendar-proxy-read',
259-
'protected' => true
260-
];
261-
262256
if ($hasOwnerSet) {
263257
$expectedAcl[] = [
264258
'privilege' => '{DAV:}read',

0 commit comments

Comments
 (0)