Skip to content

Commit 8049670

Browse files
committed
fix authenticated agent
1 parent 89b023b commit 8049670

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/WAC.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,11 +152,11 @@ private function getUserGrants($resourcePath, $webId) {
152152
$grants = $this->getPublicGrants($resourcePath);
153153

154154
// Then get grants that are valid for any authenticated agent;
155-
$foafAgent = "http://xmlns.com/foaf/0.1/AuthenticatedAgent";
155+
$authenticatedAgent = "http://www.w3.org/ns/auth/aclAuthenticatedAgent";
156156
$matching = $graph->resourcesMatching('http://www.w3.org/ns/auth/acl#agentClass');
157157
foreach ($matching as $match) {
158158
$agentClass = $match->get("<http://www.w3.org/ns/auth/acl#agentClass>");
159-
if ($agentClass == $foafAgent) {
159+
if ($agentClass == $authenticatedAgent) {
160160
$accessTo = $match->get("<http://www.w3.org/ns/auth/acl#accessTo>");
161161
$default = $match->get("<http://www.w3.org/ns/auth/acl#default>");
162162
$modes = $match->all("<http://www.w3.org/ns/auth/acl#mode>");

0 commit comments

Comments
 (0)