{"action":"created","issue":{"url":"https://api.github.com/repos/openscholar/openscholar/issues/7148","labels_url":"https://api.github.com/repos/openscholar/openscholar/issues/7148/labels{/name}","comments_url":"https://api.github.com/repos/openscholar/openscholar/issues/7148/comments","events_url":"https://api.github.com/repos/openscholar/openscholar/issues/7148/events","html_url":"https://github.com/openscholar/openscholar/pull/7148","id":71782777,"number":7148,"title":"Display the LOP only if user can view the displayed content.","user":{"login":"ran81","id":4497748,"avatar_url":"https://avatars.githubusercontent.com/u/4497748?v=3","gravatar_id":"","url":"https://api.github.com/users/ran81","html_url":"https://github.com/ran81","followers_url":"https://api.github.com/users/ran81/followers","following_url":"https://api.github.com/users/ran81/following{/other_user}","gists_url":"https://api.github.com/users/ran81/gists{/gist_id}","starred_url":"https://api.github.com/users/ran81/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ran81/subscriptions","organizations_url":"https://api.github.com/users/ran81/orgs","repos_url":"https://api.github.com/users/ran81/repos","events_url":"https://api.github.com/users/ran81/events{/privacy}","received_events_url":"https://api.github.com/users/ran81/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-29T05:27:11Z","updated_at":"2015-04-29T06:24:15Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/openscholar/openscholar/pulls/7148","html_url":"https://github.com/openscholar/openscholar/pull/7148","diff_url":"https://github.com/openscholar/openscholar/pull/7148.diff","patch_url":"https://github.com/openscholar/openscholar/pull/7148.patch"},"body":"#7133 \r\n\r\nIn this PR we check the persmission of users to view the displayed bundle in the LOP, before displaying the widget on the page. For example, on the next site all apps are public. The admin of the site and an anonymous user see:\r\n![selection_025](https://cloud.githubusercontent.com/assets/4497748/7385164/08ff9d4e-ee73-11e4-9a35-a78573c67dda.png)\r\n![selection_029](https://cloud.githubusercontent.com/assets/4497748/7385163/08e3c86c-ee73-11e4-9449-f6c5578bd155.png)\r\n\r\nNow the site admin changes the visability of events to \"private\":\r\n![selection_028](https://cloud.githubusercontent.com/assets/4497748/7385172/2eadf8f6-ee73-11e4-8b0a-f82540ec68d7.png)\r\n\r\nSubmitting the form invalidates the os_boxes cache and now the anonymous user will see:\r\n![selection_027](https://cloud.githubusercontent.com/assets/4497748/7385176/46d1bb34-ee73-11e4-8ce1-e6a17a059186.png)\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/openscholar/openscholar/issues/comments/97320756","html_url":"https://github.com/openscholar/openscholar/pull/7148#issuecomment-97320756","issue_url":"https://api.github.com/repos/openscholar/openscholar/issues/7148","id":97320756,"user":{"login":"RoySegall","id":1222368,"avatar_url":"https://avatars.githubusercontent.com/u/1222368?v=3","gravatar_id":"","url":"https://api.github.com/users/RoySegall","html_url":"https://github.com/RoySegall","followers_url":"https://api.github.com/users/RoySegall/followers","following_url":"https://api.github.com/users/RoySegall/following{/other_user}","gists_url":"https://api.github.com/users/RoySegall/gists{/gist_id}","starred_url":"https://api.github.com/users/RoySegall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RoySegall/subscriptions","organizations_url":"https://api.github.com/users/RoySegall/orgs","repos_url":"https://api.github.com/users/RoySegall/repos","events_url":"https://api.github.com/users/RoySegall/events{/privacy}","received_events_url":"https://api.github.com/users/RoySegall/received_events","type":"User","site_admin":false},"created_at":"2015-04-29T06:24:15Z","updated_at":"2015-04-29T06:24:15Z","body":"We also need to consider `Filter by terms` that display couple of bundles."}}