{"action":"created","issue":{"url":"https://api.github.com/repos/ScienceCommons/api/issues/188","labels_url":"https://api.github.com/repos/ScienceCommons/api/issues/188/labels{/name}","comments_url":"https://api.github.com/repos/ScienceCommons/api/issues/188/comments","events_url":"https://api.github.com/repos/ScienceCommons/api/issues/188/events","html_url":"https://github.com/ScienceCommons/api/issues/188","id":90121557,"number":188,"title":"Give unauthenticated users read-only access to entire beta app","user":{"login":"eplebel","id":4512335,"avatar_url":"https://avatars.githubusercontent.com/u/4512335?v=3","gravatar_id":"","url":"https://api.github.com/users/eplebel","html_url":"https://github.com/eplebel","followers_url":"https://api.github.com/users/eplebel/followers","following_url":"https://api.github.com/users/eplebel/following{/other_user}","gists_url":"https://api.github.com/users/eplebel/gists{/gist_id}","starred_url":"https://api.github.com/users/eplebel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eplebel/subscriptions","organizations_url":"https://api.github.com/users/eplebel/orgs","repos_url":"https://api.github.com/users/eplebel/repos","events_url":"https://api.github.com/users/eplebel/events{/privacy}","received_events_url":"https://api.github.com/users/eplebel/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"alexkyllo","id":2609312,"avatar_url":"https://avatars.githubusercontent.com/u/2609312?v=3","gravatar_id":"","url":"https://api.github.com/users/alexkyllo","html_url":"https://github.com/alexkyllo","followers_url":"https://api.github.com/users/alexkyllo/followers","following_url":"https://api.github.com/users/alexkyllo/following{/other_user}","gists_url":"https://api.github.com/users/alexkyllo/gists{/gist_id}","starred_url":"https://api.github.com/users/alexkyllo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexkyllo/subscriptions","organizations_url":"https://api.github.com/users/alexkyllo/orgs","repos_url":"https://api.github.com/users/alexkyllo/repos","events_url":"https://api.github.com/users/alexkyllo/events{/privacy}","received_events_url":"https://api.github.com/users/alexkyllo/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2015-06-22T14:47:37Z","updated_at":"2015-06-29T14:03:48Z","closed_at":null,"body":"As per email correspondence with @alexkyllo :\r\n\r\nThe API side will need to be changed to give unauthenticated users access to certain API endpoints like /articles, /authors, /studies, but not others like /bookmarks. They will be able to do GET requests on those resources only. Redirect logic will need changes so that anonymous users do not always get redirected to the login page, but are able to access it from the menu, and authenticated users cannot access it at all (they are already logged in). There will be several nuances to this, and many tests to execute everything is working as intended.\r\n\r\nThe client side will also need to be changed to make all the \"edit\", \"save\",\"delete\" etc. buttons disappear for anonymous unauthenticated users. Otherwise they would think they are editing until they hit save and their request fails with 401 Unauthorized (great point!).\r\n"},"comment":{"url":"https://api.github.com/repos/ScienceCommons/api/issues/comments/116677383","html_url":"https://github.com/ScienceCommons/api/issues/188#issuecomment-116677383","issue_url":"https://api.github.com/repos/ScienceCommons/api/issues/188","id":116677383,"user":{"login":"alexkyllo","id":2609312,"avatar_url":"https://avatars.githubusercontent.com/u/2609312?v=3","gravatar_id":"","url":"https://api.github.com/users/alexkyllo","html_url":"https://github.com/alexkyllo","followers_url":"https://api.github.com/users/alexkyllo/followers","following_url":"https://api.github.com/users/alexkyllo/following{/other_user}","gists_url":"https://api.github.com/users/alexkyllo/gists{/gist_id}","starred_url":"https://api.github.com/users/alexkyllo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexkyllo/subscriptions","organizations_url":"https://api.github.com/users/alexkyllo/orgs","repos_url":"https://api.github.com/users/alexkyllo/repos","events_url":"https://api.github.com/users/alexkyllo/events{/privacy}","received_events_url":"https://api.github.com/users/alexkyllo/received_events","type":"User","site_admin":false},"created_at":"2015-06-29T14:03:48Z","updated_at":"2015-06-29T14:03:48Z","body":"@eplebel what should happen when an unauthenticated user clicks on a cell in the StudyTable and that cell has no content? \r\n\r\nCorrect me if I'm wrong, but I'm assuming that unauthenticated users should not be able to edit study data nor add comments. (If you do allow these things you will get bots entering spam).\r\n\r\nAs you can see from this screenshot, I've disabled the edit button and comment box for unauthenticated users, but as a result the modal is basically blank. Do you want some placeholder text? A link to the login page saying something like \"Please log in to edit or comment\"? Do you want the modal to not pop up at all for unauthenticated users? Let me know, thanks!\r\n\r\n![screenshot from 2015-06-29 06 56 26](https://cloud.githubusercontent.com/assets/2609312/8409356/32a81cbe-1e2c-11e5-8476-817d75bfbd7c.png)"}}