{"action":"closed","number":76,"pull_request":{"url":"https://api.github.com/repos/nickedwards109/little-shop/pulls/76","id":123855501,"html_url":"https://github.com/nickedwards109/little-shop/pull/76","diff_url":"https://github.com/nickedwards109/little-shop/pull/76.diff","patch_url":"https://github.com/nickedwards109/little-shop/pull/76.patch","issue_url":"https://api.github.com/repos/nickedwards109/little-shop/issues/76","number":76,"state":"closed","locked":false,"title":"User authorization","user":{"login":"nickedwards109","id":13083224,"avatar_url":"https://avatars0.githubusercontent.com/u/13083224?v=3","gravatar_id":"","url":"https://api.github.com/users/nickedwards109","html_url":"https://github.com/nickedwards109","followers_url":"https://api.github.com/users/nickedwards109/followers","following_url":"https://api.github.com/users/nickedwards109/following{/other_user}","gists_url":"https://api.github.com/users/nickedwards109/gists{/gist_id}","starred_url":"https://api.github.com/users/nickedwards109/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nickedwards109/subscriptions","organizations_url":"https://api.github.com/users/nickedwards109/orgs","repos_url":"https://api.github.com/users/nickedwards109/repos","events_url":"https://api.github.com/users/nickedwards109/events{/privacy}","received_events_url":"https://api.github.com/users/nickedwards109/received_events","type":"User","site_admin":false},"body":"Before these changes, a user is already unauthorized to view another user's dashboard and order history. These changes add authorization so that a user cannot edit another user's information. Also, an authenticated user is now redirected to the homepage when they try to visit the login page or new user page.","created_at":"2017-06-03T20:35:45Z","updated_at":"2017-06-03T20:41:56Z","closed_at":"2017-06-03T20:41:56Z","merged_at":"2017-06-03T20:41:56Z","merge_commit_sha":"984cb4a066b88ffd2d5a988aa8d3261ec6321074","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/nickedwards109/little-shop/pulls/76/commits","review_comments_url":"https://api.github.com/repos/nickedwards109/little-shop/pulls/76/comments","review_comment_url":"https://api.github.com/repos/nickedwards109/little-shop/pulls/comments{/number}","comments_url":"https://api.github.com/repos/nickedwards109/little-shop/issues/76/comments","statuses_url":"https://api.github.com/repos/nickedwards109/little-shop/statuses/2aa905090110baae9429597f09f3fe3a01a50367","head":{"label":"nickedwards109:user-authorization","ref":"user-authorization","sha":"2aa905090110baae9429597f09f3fe3a01a50367","user":{"login":"nickedwards109","id":13083224,"avatar_url":"https://avatars0.githubusercontent.com/u/13083224?v=3","gravatar_id":"","url":"https://api.github.com/users/nickedwards109","html_url":"https://github.com/nickedwards109","followers_url":"https://api.github.com/users/nickedwards109/followers","following_url":"https://api.github.com/users/nickedwards109/following{/other_user}","gists_url":"https://api.github.com/users/nickedwards109/gists{/gist_id}","starred_url":"https://api.github.com/users/nickedwards109/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nickedwards109/subscriptions","organizations_url":"https://api.github.com/users/nickedwards109/orgs","repos_url":"https://api.github.com/users/nickedwards109/repos","events_url":"https://api.github.com/users/nickedwards109/events{/privacy}","received_events_url":"https://api.github.com/users/nickedwards109/received_events","type":"User","site_admin":false},"repo":{"id":92855587,"name":"little-shop","full_name":"nickedwards109/little-shop","owner":{"login":"nickedwards109","id":13083224,"avatar_url":"https://avatars0.githubusercontent.com/u/13083224?v=3","gravatar_id":"","url":"https://api.github.com/users/nickedwards109","html_url":"https://github.com/nickedwards109","followers_url":"https://api.github.com/users/nickedwards109/followers","following_url":"https://api.github.com/users/nickedwards109/following{/other_user}","gists_url":"https://api.github.com/users/nickedwards109/gists{/gist_id}","starred_url":"https://api.github.com/users/nickedwards109/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nickedwards109/subscriptions","organizations_url":"https://api.github.com/users/nickedwards109/orgs","repos_url":"https://api.github.com/users/nickedwards109/repos","events_url":"https://api.github.com/users/nickedwards109/events{/privacy}","received_events_url":"https://api.github.com/users/nickedwards109/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nickedwards109/little-shop","description":"Rails e-commerce site built by an awesome 3-person dev team","fork":false,"url":"https://api.github.com/repos/nickedwards109/little-shop","forks_url":"https://api.github.com/repos/nickedwards109/little-shop/forks","keys_url":"https://api.github.com/repos/nickedwards109/little-shop/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nickedwards109/little-shop/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nickedwards109/little-shop/teams","hooks_url":"https://api.github.com/repos/nickedwards109/little-shop/hooks","issue_events_url":"https://api.github.com/repos/nickedwards109/little-shop/issues/events{/number}","events_url":"https://api.github.com/repos/nickedwards109/little-shop/events","assignees_url":"https://api.github.com/repos/nickedwards109/little-shop/assignees{/user}","branches_url":"https://api.github.com/repos/nickedwards109/little-shop/branches{/branch}","tags_url":"https://api.github.com/repos/nickedwards109/little-shop/tags","blobs_url":"https://api.github.com/repos/nickedwards109/little-shop/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nickedwards109/little-shop/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nickedwards109/little-shop/git/refs{/sha}","trees_url":"https://api.github.com/repos/nickedwards109/little-shop/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nickedwards109/little-shop/statuses/{sha}","languages_url":"https://api.github.com/repos/nickedwards109/little-shop/languages","stargazers_url":"https://api.github.com/repos/nickedwards109/little-shop/stargazers","contributors_url":"https://api.github.com/repos/nickedwards109/little-shop/contributors","subscribers_url":"https://api.github.com/repos/nickedwards109/little-shop/subscribers","subscription_url":"https://api.github.com/repos/nickedwards109/little-shop/subscription","commits_url":"https://api.github.com/repos/nickedwards109/little-shop/commits{/sha}","git_commits_url":"https://api.github.com/repos/nickedwards109/little-shop/git/commits{/sha}","comments_url":"https://api.github.com/repos/nickedwards109/little-shop/comments{/number}","issue_comment_url":"https://api.github.com/repos/nickedwards109/little-shop/issues/comments{/number}","contents_url":"https://api.github.com/repos/nickedwards109/little-shop/contents/{+path}","compare_url":"https://api.github.com/repos/nickedwards109/little-shop/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nickedwards109/little-shop/merges","archive_url":"https://api.github.com/repos/nickedwards109/little-shop/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nickedwards109/little-shop/downloads","issues_url":"https://api.github.com/repos/nickedwards109/little-shop/issues{/number}","pulls_url":"https://api.github.com/repos/nickedwards109/little-shop/pulls{/number}","milestones_url":"https://api.github.com/repos/nickedwards109/little-shop/milestones{/number}","notifications_url":"https://api.github.com/repos/nickedwards109/little-shop/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nickedwards109/little-shop/labels{/name}","releases_url":"https://api.github.com/repos/nickedwards109/little-shop/releases{/id}","deployments_url":"https://api.github.com/repos/nickedwards109/little-shop/deployments","created_at":"2017-05-30T16:52:03Z","updated_at":"2017-06-01T19:59:53Z","pushed_at":"2017-06-03T20:41:56Z","git_url":"git://github.com/nickedwards109/little-shop.git","ssh_url":"git@github.com:nickedwards109/little-shop.git","clone_url":"https://github.com/nickedwards109/little-shop.git","svn_url":"https://github.com/nickedwards109/little-shop","homepage":null,"size":248,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":18,"forks":0,"open_issues":18,"watchers":0,"default_branch":"development"}},"base":{"label":"nickedwards109:development","ref":"development","sha":"e69fd7b5094999a3d8cc063697824b0e8cb2ba4b","user":{"login":"nickedwards109","id":13083224,"avatar_url":"https://avatars0.githubusercontent.com/u/13083224?v=3","gravatar_id":"","url":"https://api.github.com/users/nickedwards109","html_url":"https://github.com/nickedwards109","followers_url":"https://api.github.com/users/nickedwards109/followers","following_url":"https://api.github.com/users/nickedwards109/following{/other_user}","gists_url":"https://api.github.com/users/nickedwards109/gists{/gist_id}","starred_url":"https://api.github.com/users/nickedwards109/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nickedwards109/subscriptions","organizations_url":"https://api.github.com/users/nickedwards109/orgs","repos_url":"https://api.github.com/users/nickedwards109/repos","events_url":"https://api.github.com/users/nickedwards109/events{/privacy}","received_events_url":"https://api.github.com/users/nickedwards109/received_events","type":"User","site_admin":false},"repo":{"id":92855587,"name":"little-shop","full_name":"nickedwards109/little-shop","owner":{"login":"nickedwards109","id":13083224,"avatar_url":"https://avatars0.githubusercontent.com/u/13083224?v=3","gravatar_id":"","url":"https://api.github.com/users/nickedwards109","html_url":"https://github.com/nickedwards109","followers_url":"https://api.github.com/users/nickedwards109/followers","following_url":"https://api.github.com/users/nickedwards109/following{/other_user}","gists_url":"https://api.github.com/users/nickedwards109/gists{/gist_id}","starred_url":"https://api.github.com/users/nickedwards109/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nickedwards109/subscriptions","organizations_url":"https://api.github.com/users/nickedwards109/orgs","repos_url":"https://api.github.com/users/nickedwards109/repos","events_url":"https://api.github.com/users/nickedwards109/events{/privacy}","received_events_url":"https://api.github.com/users/nickedwards109/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nickedwards109/little-shop","description":"Rails e-commerce site built by an awesome 3-person dev team","fork":false,"url":"https://api.github.com/repos/nickedwards109/little-shop","forks_url":"https://api.github.com/repos/nickedwards109/little-shop/forks","keys_url":"https://api.github.com/repos/nickedwards109/little-shop/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nickedwards109/little-shop/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nickedwards109/little-shop/teams","hooks_url":"https://api.github.com/repos/nickedwards109/little-shop/hooks","issue_events_url":"https://api.github.com/repos/nickedwards109/little-shop/issues/events{/number}","events_url":"https://api.github.com/repos/nickedwards109/little-shop/events","assignees_url":"https://api.github.com/repos/nickedwards109/little-shop/assignees{/user}","branches_url":"https://api.github.com/repos/nickedwards109/little-shop/branches{/branch}","tags_url":"https://api.github.com/repos/nickedwards109/little-shop/tags","blobs_url":"https://api.github.com/repos/nickedwards109/little-shop/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nickedwards109/little-shop/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nickedwards109/little-shop/git/refs{/sha}","trees_url":"https://api.github.com/repos/nickedwards109/little-shop/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nickedwards109/little-shop/statuses/{sha}","languages_url":"https://api.github.com/repos/nickedwards109/little-shop/languages","stargazers_url":"https://api.github.com/repos/nickedwards109/little-shop/stargazers","contributors_url":"https://api.github.com/repos/nickedwards109/little-shop/contributors","subscribers_url":"https://api.github.com/repos/nickedwards109/little-shop/subscribers","subscription_url":"https://api.github.com/repos/nickedwards109/little-shop/subscription","commits_url":"https://api.github.com/repos/nickedwards109/little-shop/commits{/sha}","git_commits_url":"https://api.github.com/repos/nickedwards109/little-shop/git/commits{/sha}","comments_url":"https://api.github.com/repos/nickedwards109/little-shop/comments{/number}","issue_comment_url":"https://api.github.com/repos/nickedwards109/little-shop/issues/comments{/number}","contents_url":"https://api.github.com/repos/nickedwards109/little-shop/contents/{+path}","compare_url":"https://api.github.com/repos/nickedwards109/little-shop/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nickedwards109/little-shop/merges","archive_url":"https://api.github.com/repos/nickedwards109/little-shop/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nickedwards109/little-shop/downloads","issues_url":"https://api.github.com/repos/nickedwards109/little-shop/issues{/number}","pulls_url":"https://api.github.com/repos/nickedwards109/little-shop/pulls{/number}","milestones_url":"https://api.github.com/repos/nickedwards109/little-shop/milestones{/number}","notifications_url":"https://api.github.com/repos/nickedwards109/little-shop/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nickedwards109/little-shop/labels{/name}","releases_url":"https://api.github.com/repos/nickedwards109/little-shop/releases{/id}","deployments_url":"https://api.github.com/repos/nickedwards109/little-shop/deployments","created_at":"2017-05-30T16:52:03Z","updated_at":"2017-06-01T19:59:53Z","pushed_at":"2017-06-03T20:41:56Z","git_url":"git://github.com/nickedwards109/little-shop.git","ssh_url":"git@github.com:nickedwards109/little-shop.git","clone_url":"https://github.com/nickedwards109/little-shop.git","svn_url":"https://github.com/nickedwards109/little-shop","homepage":null,"size":248,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":18,"forks":0,"open_issues":18,"watchers":0,"default_branch":"development"}},"_links":{"self":{"href":"https://api.github.com/repos/nickedwards109/little-shop/pulls/76"},"html":{"href":"https://github.com/nickedwards109/little-shop/pull/76"},"issue":{"href":"https://api.github.com/repos/nickedwards109/little-shop/issues/76"},"comments":{"href":"https://api.github.com/repos/nickedwards109/little-shop/issues/76/comments"},"review_comments":{"href":"https://api.github.com/repos/nickedwards109/little-shop/pulls/76/comments"},"review_comment":{"href":"https://api.github.com/repos/nickedwards109/little-shop/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/nickedwards109/little-shop/pulls/76/commits"},"statuses":{"href":"https://api.github.com/repos/nickedwards109/little-shop/statuses/2aa905090110baae9429597f09f3fe3a01a50367"}},"merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"alex-w-k","id":5731483,"avatar_url":"https://avatars2.githubusercontent.com/u/5731483?v=3","gravatar_id":"","url":"https://api.github.com/users/alex-w-k","html_url":"https://github.com/alex-w-k","followers_url":"https://api.github.com/users/alex-w-k/followers","following_url":"https://api.github.com/users/alex-w-k/following{/other_user}","gists_url":"https://api.github.com/users/alex-w-k/gists{/gist_id}","starred_url":"https://api.github.com/users/alex-w-k/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alex-w-k/subscriptions","organizations_url":"https://api.github.com/users/alex-w-k/orgs","repos_url":"https://api.github.com/users/alex-w-k/repos","events_url":"https://api.github.com/users/alex-w-k/events{/privacy}","received_events_url":"https://api.github.com/users/alex-w-k/received_events","type":"User","site_admin":false},"comments":1,"review_comments":10,"maintainer_can_modify":false,"commits":4,"additions":55,"deletions":7,"changed_files":5}}
{"actor":{"display_login":"alex-w-k"}}