{"action":"opened","issue":{"url":"https://api.github.com/repos/AppFolioOnboarding/ss-vanity/issues/22","repository_url":"https://api.github.com/repos/AppFolioOnboarding/ss-vanity","labels_url":"https://api.github.com/repos/AppFolioOnboarding/ss-vanity/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/AppFolioOnboarding/ss-vanity/issues/22/comments","events_url":"https://api.github.com/repos/AppFolioOnboarding/ss-vanity/issues/22/events","html_url":"https://github.com/AppFolioOnboarding/ss-vanity/issues/22","id":133110580,"number":22,"title":"Authorization","user":{"login":"bboe","id":48100,"avatar_url":"https://avatars.githubusercontent.com/u/48100?v=3","gravatar_id":"","url":"https://api.github.com/users/bboe","html_url":"https://github.com/bboe","followers_url":"https://api.github.com/users/bboe/followers","following_url":"https://api.github.com/users/bboe/following{/other_user}","gists_url":"https://api.github.com/users/bboe/gists{/gist_id}","starred_url":"https://api.github.com/users/bboe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bboe/subscriptions","organizations_url":"https://api.github.com/users/bboe/orgs","repos_url":"https://api.github.com/users/bboe/repos","events_url":"https://api.github.com/users/bboe/events{/privacy}","received_events_url":"https://api.github.com/users/bboe/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-11T23:00:46Z","updated_at":"2016-02-11T23:00:46Z","closed_at":null,"body":"#### As an application hoster I want to restrict some functionality to specific users.\n\n- [ ] Logged out users are restricted to read-only access.\n- [ ] Links to non-read actions are not shown to logged out users.\n- [ ] Attempting to access a page that requires authentication redirects you to\n  the login page.\n- [ ] Upon successful login, you are redirected back to where you had tried to\n  navigate.\n- [ ] Every image is associated with the user that added it.\n- [ ] Only the user that added an image can delete that image.\n\nDiscussion topics:\n- [ ] If we wanted to add a lot of authorization rules, how might we want to\n  organize our code to keep it maintainable?\n\nFurther reading:\n- https://github.com/elabs/pundit\n\nDependencies:\n- Authentication\n"}}