Skip to content

Commit 1688dc4

Browse files
committed
update format from sparql to n3
1 parent 68d74be commit 1688dc4

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/WAC.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,8 @@ public function getRequestedGrants($request) {
452452
$body = $request->getBody()->getContents();
453453
$request->getBody()->rewind();
454454

455-
if (strstr($body, "DELETE")) {
455+
// FIXME: determine the actual patch types instead of using a string match;
456+
if (strstr($body, "deletes")) {
456457
$grants[] = array(
457458
"type" => "resource",
458459
"grants" => array('http://www.w3.org/ns/auth/acl#Write')
@@ -464,7 +465,7 @@ public function getRequestedGrants($request) {
464465
"grants" => array('http://www.w3.org/ns/auth/acl#Read')
465466
);
466467
}
467-
if (strstr($body, "INSERT")) {
468+
if (strstr($body, "inserts")) {
468469
if ($this->filesystem->has($path)) {
469470
$grants[] = array(
470471
"type" => "resource",

0 commit comments

Comments
 (0)