From e2895abeb828ac123086003c907e29264bd66700 Mon Sep 17 00:00:00 2001 From: Michiel de Jong Date: Wed, 24 Nov 2021 13:59:12 +0100 Subject: [PATCH] Require write on parent for DELETE Adapt to https://github.com/solid/web-access-control-tests/issues/42 Tested as part of https://github.com/pdsinterop/php-solid-server/issues/52 --- src/WAC.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/WAC.php b/src/WAC.php index fc659e8..6a65d43 100644 --- a/src/WAC.php +++ b/src/WAC.php @@ -380,6 +380,10 @@ public function getRequestedGrants($request) { array( "type" => "resource", "grants" => array('http://www.w3.org/ns/auth/acl#Write') + ), + array( + "type" => "parent", + "grants" => array('http://www.w3.org/ns/auth/acl#Write') ) ); break;