We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 68d74be commit 1688dc4Copy full SHA for 1688dc4
1 file changed
src/WAC.php
@@ -452,7 +452,8 @@ public function getRequestedGrants($request) {
452
$body = $request->getBody()->getContents();
453
$request->getBody()->rewind();
454
455
- if (strstr($body, "DELETE")) {
+ // FIXME: determine the actual patch types instead of using a string match;
456
+ if (strstr($body, "deletes")) {
457
$grants[] = array(
458
"type" => "resource",
459
"grants" => array('http://www.w3.org/ns/auth/acl#Write')
@@ -464,7 +465,7 @@ public function getRequestedGrants($request) {
464
465
"grants" => array('http://www.w3.org/ns/auth/acl#Read')
466
);
467
}
- if (strstr($body, "INSERT")) {
468
+ if (strstr($body, "inserts")) {
469
if ($this->filesystem->has($path)) {
470
471
0 commit comments