{"action":"created","comment":{"url":"https://api.github.com/repos/discoverygarden/presbydora/pulls/comments/235931366","pull_request_review_id":177914432,"id":235931366,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzNTkzMTM2Ng==","diff_hunk":"@@ -273,6 +285,21 @@ function presbydora_embargo_date_set_year_range($form_element, $form_values) {\n  */\n function presbydora_islandora_datastream_access($op, $islandora_datastream, $user) {\n   if ($islandora_datastream->id == 'OBJ' || $islandora_datastream->id == 'PDF') {\n+    // Modified to allow specific objects to be accessible.\n+    $object = $islandora_datastream->parent;\n+    $pid = $object->id;\n+\n+    module_load_include('inc', 'presbydora', 'includes/utilities');\n+    $bypass_pids = variable_get('presbydora_access_bypass_pids', array());\n+    if (!empty($bypass_pids)) {\n+      $ancestors = presbydora_get_ancestors($pid);\n+      $is_intersect = !empty(array_intersect($ancestors, $bypass_pids));\n+\n+      if ($is_intersect) {\n+        $access = (islandora_namespace_accessible($pid) && user_access($op, $user));","path":"presbydora.module","position":55,"original_position":55,"commit_id":"ee0ebc0191da957d82c74c1968050bb111f0d850","original_commit_id":"ee0ebc0191da957d82c74c1968050bb111f0d850","user":{"login":"IAMlKeno","id":22577721,"node_id":"MDQ6VXNlcjIyNTc3NzIx","avatar_url":"https://avatars3.githubusercontent.com/u/22577721?v=4","gravatar_id":"","url":"https://api.github.com/users/IAMlKeno","html_url":"https://github.com/IAMlKeno","followers_url":"https://api.github.com/users/IAMlKeno/followers","following_url":"https://api.github.com/users/IAMlKeno/following{/other_user}","gists_url":"https://api.github.com/users/IAMlKeno/gists{/gist_id}","starred_url":"https://api.github.com/users/IAMlKeno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IAMlKeno/subscriptions","organizations_url":"https://api.github.com/users/IAMlKeno/orgs","repos_url":"https://api.github.com/users/IAMlKeno/repos","events_url":"https://api.github.com/users/IAMlKeno/events{/privacy}","received_events_url":"https://api.github.com/users/IAMlKeno/received_events","type":"User","site_admin":false},"body":"Thanks for the clarification","created_at":"2018-11-23T12:48:56Z","updated_at":"2018-11-23T12:48:56Z","html_url":"https://github.com/discoverygarden/presbydora/pull/14#discussion_r235931366","pull_request_url":"https://api.github.com/repos/discoverygarden/presbydora/pulls/14","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/discoverygarden/presbydora/pulls/comments/235931366"},"html":{"href":"https://github.com/discoverygarden/presbydora/pull/14#discussion_r235931366"},"pull_request":{"href":"https://api.github.com/repos/discoverygarden/presbydora/pulls/14"}},"in_reply_to_id":235814263},"pull_request":{"url":"https://api.github.com/repos/discoverygarden/presbydora/pulls/14","id":232020857,"node_id":"MDExOlB1bGxSZXF1ZXN0MjMyMDIwODU3","html_url":"https://github.com/discoverygarden/presbydora/pull/14","diff_url":"https://github.com/discoverygarden/presbydora/pull/14.diff","patch_url":"https://github.com/discoverygarden/presbydora/pull/14.patch","issue_url":"https://api.github.com/repos/discoverygarden/presbydora/issues/14","number":14,"state":"open","locked":false,"title":"Sup2017","user":{"login":"IAMlKeno","id":22577721,"node_id":"MDQ6VXNlcjIyNTc3NzIx","avatar_url":"https://avatars3.githubusercontent.com/u/22577721?v=4","gravatar_id":"","url":"https://api.github.com/users/IAMlKeno","html_url":"https://github.com/IAMlKeno","followers_url":"https://api.github.com/users/IAMlKeno/followers","following_url":"https://api.github.com/users/IAMlKeno/following{/other_user}","gists_url":"https://api.github.com/users/IAMlKeno/gists{/gist_id}","starred_url":"https://api.github.com/users/IAMlKeno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IAMlKeno/subscriptions","organizations_url":"https://api.github.com/users/IAMlKeno/orgs","repos_url":"https://api.github.com/users/IAMlKeno/repos","events_url":"https://api.github.com/users/IAMlKeno/events{/privacy}","received_events_url":"https://api.github.com/users/IAMlKeno/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-11-19T15:49:03Z","updated_at":"2018-11-23T12:48:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f8011ec72eeb09ce4c9bf4ce318e6106d7cfa06e","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/discoverygarden/presbydora/pulls/14/commits","review_comments_url":"https://api.github.com/repos/discoverygarden/presbydora/pulls/14/comments","review_comment_url":"https://api.github.com/repos/discoverygarden/presbydora/pulls/comments{/number}","comments_url":"https://api.github.com/repos/discoverygarden/presbydora/issues/14/comments","statuses_url":"https://api.github.com/repos/discoverygarden/presbydora/statuses/ee0ebc0191da957d82c74c1968050bb111f0d850","head":{"label":"IAMlKeno:sup2017","ref":"sup2017","sha":"ee0ebc0191da957d82c74c1968050bb111f0d850","user":{"login":"IAMlKeno","id":22577721,"node_id":"MDQ6VXNlcjIyNTc3NzIx","avatar_url":"https://avatars3.githubusercontent.com/u/22577721?v=4","gravatar_id":"","url":"https://api.github.com/users/IAMlKeno","html_url":"https://github.com/IAMlKeno","followers_url":"https://api.github.com/users/IAMlKeno/followers","following_url":"https://api.github.com/users/IAMlKeno/following{/other_user}","gists_url":"https://api.github.com/users/IAMlKeno/gists{/gist_id}","starred_url":"https://api.github.com/users/IAMlKeno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IAMlKeno/subscriptions","organizations_url":"https://api.github.com/users/IAMlKeno/orgs","repos_url":"https://api.github.com/users/IAMlKeno/repos","events_url":"https://api.github.com/users/IAMlKeno/events{/privacy}","received_events_url":"https://api.github.com/users/IAMlKeno/received_events","type":"User","site_admin":false},"repo":{"id":157741422,"node_id":"MDEwOlJlcG9zaXRvcnkxNTc3NDE0MjI=","name":"presbydora","full_name":"IAMlKeno/presbydora","private":false,"owner":{"login":"IAMlKeno","id":22577721,"node_id":"MDQ6VXNlcjIyNTc3NzIx","avatar_url":"https://avatars3.githubusercontent.com/u/22577721?v=4","gravatar_id":"","url":"https://api.github.com/users/IAMlKeno","html_url":"https://github.com/IAMlKeno","followers_url":"https://api.github.com/users/IAMlKeno/followers","following_url":"https://api.github.com/users/IAMlKeno/following{/other_user}","gists_url":"https://api.github.com/users/IAMlKeno/gists{/gist_id}","starred_url":"https://api.github.com/users/IAMlKeno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IAMlKeno/subscriptions","organizations_url":"https://api.github.com/users/IAMlKeno/orgs","repos_url":"https://api.github.com/users/IAMlKeno/repos","events_url":"https://api.github.com/users/IAMlKeno/events{/privacy}","received_events_url":"https://api.github.com/users/IAMlKeno/received_events","type":"User","site_admin":false},"html_url":"https://github.com/IAMlKeno/presbydora","description":null,"fork":true,"url":"https://api.github.com/repos/IAMlKeno/presbydora","forks_url":"https://api.github.com/repos/IAMlKeno/presbydora/forks","keys_url":"https://api.github.com/repos/IAMlKeno/presbydora/keys{/key_id}","collaborators_url":"https://api.github.com/repos/IAMlKeno/presbydora/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/IAMlKeno/presbydora/teams","hooks_url":"https://api.github.com/repos/IAMlKeno/presbydora/hooks","issue_events_url":"https://api.github.com/repos/IAMlKeno/presbydora/issues/events{/number}","events_url":"https://api.github.com/repos/IAMlKeno/presbydora/events","assignees_url":"https://api.github.com/repos/IAMlKeno/presbydora/assignees{/user}","branches_url":"https://api.github.com/repos/IAMlKeno/presbydora/branches{/branch}","tags_url":"https://api.github.com/repos/IAMlKeno/presbydora/tags","blobs_url":"https://api.github.com/repos/IAMlKeno/presbydora/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/IAMlKeno/presbydora/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/IAMlKeno/presbydora/git/refs{/sha}","trees_url":"https://api.github.com/repos/IAMlKeno/presbydora/git/trees{/sha}","statuses_url":"https://api.github.com/repos/IAMlKeno/presbydora/statuses/{sha}","languages_url":"https://api.github.com/repos/IAMlKeno/presbydora/languages","stargazers_url":"https://api.github.com/repos/IAMlKeno/presbydora/stargazers","contributors_url":"https://api.github.com/repos/IAMlKeno/presbydora/contributors","subscribers_url":"https://api.github.com/repos/IAMlKeno/presbydora/subscribers","subscription_url":"https://api.github.com/repos/IAMlKeno/presbydora/subscription","commits_url":"https://api.github.com/repos/IAMlKeno/presbydora/commits{/sha}","git_commits_url":"https://api.github.com/repos/IAMlKeno/presbydora/git/commits{/sha}","comments_url":"https://api.github.com/repos/IAMlKeno/presbydora/comments{/number}","issue_comment_url":"https://api.github.com/repos/IAMlKeno/presbydora/issues/comments{/number}","contents_url":"https://api.github.com/repos/IAMlKeno/presbydora/contents/{+path}","compare_url":"https://api.github.com/repos/IAMlKeno/presbydora/compare/{base}...{head}","merges_url":"https://api.github.com/repos/IAMlKeno/presbydora/merges","archive_url":"https://api.github.com/repos/IAMlKeno/presbydora/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/IAMlKeno/presbydora/downloads","issues_url":"https://api.github.com/repos/IAMlKeno/presbydora/issues{/number}","pulls_url":"https://api.github.com/repos/IAMlKeno/presbydora/pulls{/number}","milestones_url":"https://api.github.com/repos/IAMlKeno/presbydora/milestones{/number}","notifications_url":"https://api.github.com/repos/IAMlKeno/presbydora/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/IAMlKeno/presbydora/labels{/name}","releases_url":"https://api.github.com/repos/IAMlKeno/presbydora/releases{/id}","deployments_url":"https://api.github.com/repos/IAMlKeno/presbydora/deployments","created_at":"2018-11-15T16:32:59Z","updated_at":"2018-11-15T16:33:05Z","pushed_at":"2018-11-22T18:42:33Z","git_url":"git://github.com/IAMlKeno/presbydora.git","ssh_url":"git@github.com:IAMlKeno/presbydora.git","clone_url":"https://github.com/IAMlKeno/presbydora.git","svn_url":"https://github.com/IAMlKeno/presbydora","homepage":null,"size":50,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"discoverygarden:master","ref":"master","sha":"69ef365091ff1a31455a83337f8f9f3706c8ea6c","user":{"login":"discoverygarden","id":598560,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU5ODU2MA==","avatar_url":"https://avatars3.githubusercontent.com/u/598560?v=4","gravatar_id":"","url":"https://api.github.com/users/discoverygarden","html_url":"https://github.com/discoverygarden","followers_url":"https://api.github.com/users/discoverygarden/followers","following_url":"https://api.github.com/users/discoverygarden/following{/other_user}","gists_url":"https://api.github.com/users/discoverygarden/gists{/gist_id}","starred_url":"https://api.github.com/users/discoverygarden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/discoverygarden/subscriptions","organizations_url":"https://api.github.com/users/discoverygarden/orgs","repos_url":"https://api.github.com/users/discoverygarden/repos","events_url":"https://api.github.com/users/discoverygarden/events{/privacy}","received_events_url":"https://api.github.com/users/discoverygarden/received_events","type":"Organization","site_admin":false},"repo":{"id":30258602,"node_id":"MDEwOlJlcG9zaXRvcnkzMDI1ODYwMg==","name":"presbydora","full_name":"discoverygarden/presbydora","private":false,"owner":{"login":"discoverygarden","id":598560,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU5ODU2MA==","avatar_url":"https://avatars3.githubusercontent.com/u/598560?v=4","gravatar_id":"","url":"https://api.github.com/users/discoverygarden","html_url":"https://github.com/discoverygarden","followers_url":"https://api.github.com/users/discoverygarden/followers","following_url":"https://api.github.com/users/discoverygarden/following{/other_user}","gists_url":"https://api.github.com/users/discoverygarden/gists{/gist_id}","starred_url":"https://api.github.com/users/discoverygarden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/discoverygarden/subscriptions","organizations_url":"https://api.github.com/users/discoverygarden/orgs","repos_url":"https://api.github.com/users/discoverygarden/repos","events_url":"https://api.github.com/users/discoverygarden/events{/privacy}","received_events_url":"https://api.github.com/users/discoverygarden/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/discoverygarden/presbydora","description":null,"fork":false,"url":"https://api.github.com/repos/discoverygarden/presbydora","forks_url":"https://api.github.com/repos/discoverygarden/presbydora/forks","keys_url":"https://api.github.com/repos/discoverygarden/presbydora/keys{/key_id}","collaborators_url":"https://api.github.com/repos/discoverygarden/presbydora/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/discoverygarden/presbydora/teams","hooks_url":"https://api.github.com/repos/discoverygarden/presbydora/hooks","issue_events_url":"https://api.github.com/repos/discoverygarden/presbydora/issues/events{/number}","events_url":"https://api.github.com/repos/discoverygarden/presbydora/events","assignees_url":"https://api.github.com/repos/discoverygarden/presbydora/assignees{/user}","branches_url":"https://api.github.com/repos/discoverygarden/presbydora/branches{/branch}","tags_url":"https://api.github.com/repos/discoverygarden/presbydora/tags","blobs_url":"https://api.github.com/repos/discoverygarden/presbydora/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/discoverygarden/presbydora/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/discoverygarden/presbydora/git/refs{/sha}","trees_url":"https://api.github.com/repos/discoverygarden/presbydora/git/trees{/sha}","statuses_url":"https://api.github.com/repos/discoverygarden/presbydora/statuses/{sha}","languages_url":"https://api.github.com/repos/discoverygarden/presbydora/languages","stargazers_url":"https://api.github.com/repos/discoverygarden/presbydora/stargazers","contributors_url":"https://api.github.com/repos/discoverygarden/presbydora/contributors","subscribers_url":"https://api.github.com/repos/discoverygarden/presbydora/subscribers","subscription_url":"https://api.github.com/repos/discoverygarden/presbydora/subscription","commits_url":"https://api.github.com/repos/discoverygarden/presbydora/commits{/sha}","git_commits_url":"https://api.github.com/repos/discoverygarden/presbydora/git/commits{/sha}","comments_url":"https://api.github.com/repos/discoverygarden/presbydora/comments{/number}","issue_comment_url":"https://api.github.com/repos/discoverygarden/presbydora/issues/comments{/number}","contents_url":"https://api.github.com/repos/discoverygarden/presbydora/contents/{+path}","compare_url":"https://api.github.com/repos/discoverygarden/presbydora/compare/{base}...{head}","merges_url":"https://api.github.com/repos/discoverygarden/presbydora/merges","archive_url":"https://api.github.com/repos/discoverygarden/presbydora/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/discoverygarden/presbydora/downloads","issues_url":"https://api.github.com/repos/discoverygarden/presbydora/issues{/number}","pulls_url":"https://api.github.com/repos/discoverygarden/presbydora/pulls{/number}","milestones_url":"https://api.github.com/repos/discoverygarden/presbydora/milestones{/number}","notifications_url":"https://api.github.com/repos/discoverygarden/presbydora/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/discoverygarden/presbydora/labels{/name}","releases_url":"https://api.github.com/repos/discoverygarden/presbydora/releases{/id}","deployments_url":"https://api.github.com/repos/discoverygarden/presbydora/deployments","created_at":"2015-02-03T18:45:48Z","updated_at":"2018-08-01T16:11:49Z","pushed_at":"2018-11-22T18:42:34Z","git_url":"git://github.com/discoverygarden/presbydora.git","ssh_url":"git@github.com:discoverygarden/presbydora.git","clone_url":"https://github.com/discoverygarden/presbydora.git","svn_url":"https://github.com/discoverygarden/presbydora","homepage":null,"size":32,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/discoverygarden/presbydora/pulls/14"},"html":{"href":"https://github.com/discoverygarden/presbydora/pull/14"},"issue":{"href":"https://api.github.com/repos/discoverygarden/presbydora/issues/14"},"comments":{"href":"https://api.github.com/repos/discoverygarden/presbydora/issues/14/comments"},"review_comments":{"href":"https://api.github.com/repos/discoverygarden/presbydora/pulls/14/comments"},"review_comment":{"href":"https://api.github.com/repos/discoverygarden/presbydora/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/discoverygarden/presbydora/pulls/14/commits"},"statuses":{"href":"https://api.github.com/repos/discoverygarden/presbydora/statuses/ee0ebc0191da957d82c74c1968050bb111f0d850"}},"author_association":"NONE"}}
{"actor":{"display_login":"IAMlKeno"}}