Skip to content

Commit 4b6d20c

Browse files
authored
Merge pull request #18 from pdsinterop/require-write-on-parent-for-delete
Require write on parent for DELETE
2 parents 9394fc5 + e2895ab commit 4b6d20c

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/WAC.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,10 @@ public function getRequestedGrants($request) {
380380
array(
381381
"type" => "resource",
382382
"grants" => array('http://www.w3.org/ns/auth/acl#Write')
383+
),
384+
array(
385+
"type" => "parent",
386+
"grants" => array('http://www.w3.org/ns/auth/acl#Write')
383387
)
384388
);
385389
break;

0 commit comments

Comments
 (0)