Skip to content

add option to check Origin in acl#12

Merged
ylebre merged 1 commit intomasterfrom
feature/origin
Jan 11, 2021
Merged

add option to check Origin in acl#12
ylebre merged 1 commit intomasterfrom
feature/origin

Conversation

@ylebre
Copy link
Copy Markdown
Member

@ylebre ylebre commented Jan 11, 2021

No description provided.

Copy link
Copy Markdown
Member

@Potherca Potherca left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nothing weird found. One or two questions for later resolution.

}
$acl = $this->filesystem->read($aclPath);

$graph = new \EasyRdf_Graph();
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The new \EasyRdf_Graph() and $_SERVER['REQUEST_SCHEME'] should eventually come from outside the class, but fine for now.

//error_log("$origin accessTo $accessTo");
$default = $match->get("<http://www.w3.org/ns/auth/acl#default>");
$modes = $match->all("<http://www.w3.org/ns/auth/acl#mode>");
if ($default) {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if if - foreach - if - foreach is better or foreach - if - if... Since this is already nested in a foreach... and/or maybe use yield to speed things up? 🤔

Not sure...

@ylebre ylebre merged commit b734645 into master Jan 11, 2021
@ylebre ylebre deleted the feature/origin branch January 11, 2021 19:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants