{"action":"created","issue":{"url":"https://api.github.com/repos/ssddanbrown/BookStack/issues/138","repository_url":"https://api.github.com/repos/ssddanbrown/BookStack","labels_url":"https://api.github.com/repos/ssddanbrown/BookStack/issues/138/labels{/name}","comments_url":"https://api.github.com/repos/ssddanbrown/BookStack/issues/138/comments","events_url":"https://api.github.com/repos/ssddanbrown/BookStack/issues/138/events","html_url":"https://github.com/ssddanbrown/BookStack/issues/138","id":163555961,"number":138,"title":"add `unauthenticated` special role for unauthenticated users","user":{"login":"squiddle","id":98932,"avatar_url":"https://avatars.githubusercontent.com/u/98932?v=3","gravatar_id":"","url":"https://api.github.com/users/squiddle","html_url":"https://github.com/squiddle","followers_url":"https://api.github.com/users/squiddle/followers","following_url":"https://api.github.com/users/squiddle/following{/other_user}","gists_url":"https://api.github.com/users/squiddle/gists{/gist_id}","starred_url":"https://api.github.com/users/squiddle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/squiddle/subscriptions","organizations_url":"https://api.github.com/users/squiddle/orgs","repos_url":"https://api.github.com/users/squiddle/repos","events_url":"https://api.github.com/users/squiddle/events{/privacy}","received_events_url":"https://api.github.com/users/squiddle/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ssddanbrown/BookStack/labels/Type:%20Enhancement","name":"Type: Enhancement","color":"009800"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-03T10:14:44Z","updated_at":"2016-07-04T17:45:17Z","closed_at":null,"body":"That would allow to configure individual books to be publicly viewable or even editable (not sure about drafts, as there is no real user identity and garbage drafts could accumulate). But at least view should be selectable to allow public viewing in a single book. \r\n\r\nWhy use the role system for this? It adds not another mechanism into the authentication system, but builds on the existing one.\r\n\r\nIt also allows the removal of the public-viewing setting, which currently also acts as a second authorization information source. With an unauthenticated role it just means view for the unauthenticated user role and could be managed from the role settings page together with all other authorization settings."},"comment":{"url":"https://api.github.com/repos/ssddanbrown/BookStack/issues/comments/230333337","html_url":"https://github.com/ssddanbrown/BookStack/issues/138#issuecomment-230333337","issue_url":"https://api.github.com/repos/ssddanbrown/BookStack/issues/138","id":230333337,"user":{"login":"ssddanbrown","id":8343178,"avatar_url":"https://avatars.githubusercontent.com/u/8343178?v=3","gravatar_id":"","url":"https://api.github.com/users/ssddanbrown","html_url":"https://github.com/ssddanbrown","followers_url":"https://api.github.com/users/ssddanbrown/followers","following_url":"https://api.github.com/users/ssddanbrown/following{/other_user}","gists_url":"https://api.github.com/users/ssddanbrown/gists{/gist_id}","starred_url":"https://api.github.com/users/ssddanbrown/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ssddanbrown/subscriptions","organizations_url":"https://api.github.com/users/ssddanbrown/orgs","repos_url":"https://api.github.com/users/ssddanbrown/repos","events_url":"https://api.github.com/users/ssddanbrown/events{/privacy}","received_events_url":"https://api.github.com/users/ssddanbrown/received_events","type":"User","site_admin":false},"created_at":"2016-07-04T17:45:17Z","updated_at":"2016-07-04T17:45:17Z","body":"Hi @squiddle, Thanks for the suggestion. This should be fairly simple since that's exactly how the public permissions are currently handled! The system just hides the public role from any view.\r\n\r\nIf you view the `roles` table in your database you'll see a public role. Changing the `hidden` value from 1 to 0 will make it show up. Things do get funky when trying to edit as a public member though since they're not technically a user.\r\n\r\n"}}
{"actor":{"display_login":"ssddanbrown"}}