{"action":"created","comment":{"url":"https://api.github.com/repos/awesome-academy/pr1-1803-shoes-shop/pulls/comments/231127682","pull_request_review_id":172024028,"id":231127682,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzMTEyNzY4Mg==","diff_hunk":"@@ -1,3 +1,18 @@\n class Admin::BaseController < ActionController::Base\n   layout \"admin/application\"\n+  before_action :logged_in_user\n+  before_action :admin_user\n+  include SessionsHelper\n+\n+  def admin_user","path":"app/controllers/admin/base_controller.rb","position":7,"original_position":7,"commit_id":"094e2f85048b3376dff42eb34c761514691ad6aa","original_commit_id":"094e2f85048b3376dff42eb34c761514691ad6aa","user":{"login":"dogiadat","id":11146493,"node_id":"MDQ6VXNlcjExMTQ2NDkz","avatar_url":"https://avatars1.githubusercontent.com/u/11146493?v=4","gravatar_id":"","url":"https://api.github.com/users/dogiadat","html_url":"https://github.com/dogiadat","followers_url":"https://api.github.com/users/dogiadat/followers","following_url":"https://api.github.com/users/dogiadat/following{/other_user}","gists_url":"https://api.github.com/users/dogiadat/gists{/gist_id}","starred_url":"https://api.github.com/users/dogiadat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dogiadat/subscriptions","organizations_url":"https://api.github.com/users/dogiadat/orgs","repos_url":"https://api.github.com/users/dogiadat/repos","events_url":"https://api.github.com/users/dogiadat/events{/privacy}","received_events_url":"https://api.github.com/users/dogiadat/received_events","type":"User","site_admin":false},"body":"cho 2 hàm này vào private","created_at":"2018-11-06T13:49:04Z","updated_at":"2018-11-06T13:49:17Z","html_url":"https://github.com/awesome-academy/pr1-1803-shoes-shop/pull/9#discussion_r231127682","pull_request_url":"https://api.github.com/repos/awesome-academy/pr1-1803-shoes-shop/pulls/9","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/awesome-academy/pr1-1803-shoes-shop/pulls/comments/231127682"},"html":{"href":"https://github.com/awesome-academy/pr1-1803-shoes-shop/pull/9#discussion_r231127682"},"pull_request":{"href":"https://api.github.com/repos/awesome-academy/pr1-1803-shoes-shop/pulls/9"}}},"pull_request":{"url":"https://api.github.com/repos/awesome-academy/pr1-1803-shoes-shop/pulls/9","id":228692286,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI4NjkyMjg2","html_url":"https://github.com/awesome-academy/pr1-1803-shoes-shop/pull/9","diff_url":"https://github.com/awesome-academy/pr1-1803-shoes-shop/pull/9.diff","patch_url":"https://github.com/awesome-academy/pr1-1803-shoes-shop/pull/9.patch","issue_url":"https://api.github.com/repos/awesome-academy/pr1-1803-shoes-shop/issues/9","number":9,"state":"open","locked":false,"title":"role user","user":{"login":"quangnguyen1","id":37622132,"node_id":"MDQ6VXNlcjM3NjIyMTMy","avatar_url":"https://avatars1.githubusercontent.com/u/37622132?v=4","gravatar_id":"","url":"https://api.github.com/users/quangnguyen1","html_url":"https://github.com/quangnguyen1","followers_url":"https://api.github.com/users/quangnguyen1/followers","following_url":"https://api.github.com/users/quangnguyen1/following{/other_user}","gists_url":"https://api.github.com/users/quangnguyen1/gists{/gist_id}","starred_url":"https://api.github.com/users/quangnguyen1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/quangnguyen1/subscriptions","organizations_url":"https://api.github.com/users/quangnguyen1/orgs","repos_url":"https://api.github.com/users/quangnguyen1/repos","events_url":"https://api.github.com/users/quangnguyen1/events{/privacy}","received_events_url":"https://api.github.com/users/quangnguyen1/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-11-06T13:31:40Z","updated_at":"2018-11-06T13:49:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d5dc17c977e26ea62b5747a946018676b3b4bc3e","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/awesome-academy/pr1-1803-shoes-shop/pulls/9/commits","review_comments_url":"https://api.github.com/repos/awesome-academy/pr1-1803-shoes-shop/pulls/9/comments","review_comment_url":"https://api.github.com/repos/awesome-academy/pr1-1803-shoes-shop/pulls/comments{/number}","comments_url":"https://api.github.com/repos/awesome-academy/pr1-1803-shoes-shop/issues/9/comments","statuses_url":"https://api.github.com/repos/awesome-academy/pr1-1803-shoes-shop/statuses/094e2f85048b3376dff42eb34c761514691ad6aa","head":{"label":"quangnguyen1:roleusers","ref":"roleusers","sha":"094e2f85048b3376dff42eb34c761514691ad6aa","user":{"login":"quangnguyen1","id":37622132,"node_id":"MDQ6VXNlcjM3NjIyMTMy","avatar_url":"https://avatars1.githubusercontent.com/u/37622132?v=4","gravatar_id":"","url":"https://api.github.com/users/quangnguyen1","html_url":"https://github.com/quangnguyen1","followers_url":"https://api.github.com/users/quangnguyen1/followers","following_url":"https://api.github.com/users/quangnguyen1/following{/other_user}","gists_url":"https://api.github.com/users/quangnguyen1/gists{/gist_id}","starred_url":"https://api.github.com/users/quangnguyen1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/quangnguyen1/subscriptions","organizations_url":"https://api.github.com/users/quangnguyen1/orgs","repos_url":"https://api.github.com/users/quangnguyen1/repos","events_url":"https://api.github.com/users/quangnguyen1/events{/privacy}","received_events_url":"https://api.github.com/users/quangnguyen1/received_events","type":"User","site_admin":false},"repo":{"id":153286571,"node_id":"MDEwOlJlcG9zaXRvcnkxNTMyODY1NzE=","name":"pr1-1803-shoes-shop","full_name":"quangnguyen1/pr1-1803-shoes-shop","private":false,"owner":{"login":"quangnguyen1","id":37622132,"node_id":"MDQ6VXNlcjM3NjIyMTMy","avatar_url":"https://avatars1.githubusercontent.com/u/37622132?v=4","gravatar_id":"","url":"https://api.github.com/users/quangnguyen1","html_url":"https://github.com/quangnguyen1","followers_url":"https://api.github.com/users/quangnguyen1/followers","following_url":"https://api.github.com/users/quangnguyen1/following{/other_user}","gists_url":"https://api.github.com/users/quangnguyen1/gists{/gist_id}","starred_url":"https://api.github.com/users/quangnguyen1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/quangnguyen1/subscriptions","organizations_url":"https://api.github.com/users/quangnguyen1/orgs","repos_url":"https://api.github.com/users/quangnguyen1/repos","events_url":"https://api.github.com/users/quangnguyen1/events{/privacy}","received_events_url":"https://api.github.com/users/quangnguyen1/received_events","type":"User","site_admin":false},"html_url":"https://github.com/quangnguyen1/pr1-1803-shoes-shop","description":"Team 1: Sáng, Tuyền, Quang","fork":true,"url":"https://api.github.com/repos/quangnguyen1/pr1-1803-shoes-shop","forks_url":"https://api.github.com/repos/quangnguyen1/pr1-1803-shoes-shop/forks","keys_url":"https://api.github.com/repos/quangnguyen1/pr1-1803-shoes-shop/keys{/key_id}","collaborators_url":"https://api.github.com/repos/quangnguyen1/pr1-1803-shoes-shop/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/quangnguyen1/pr1-1803-shoes-shop/teams","hooks_url":"https://api.github.com/repos/quangnguyen1/pr1-1803-shoes-shop/hooks","issue_events_url":"https://api.github.com/repos/quangnguyen1/pr1-1803-shoes-shop/issues/events{/number}","events_url":"https://api.github.com/repos/quangnguyen1/pr1-1803-shoes-shop/events","assignees_url":"https://api.github.com/repos/quangnguyen1/pr1-1803-shoes-shop/assignees{/user}","branches_url":"https://api.github.com/repos/quangnguyen1/pr1-1803-shoes-shop/branches{/branch}","tags_url":"https://api.github.com/repos/quangnguyen1/pr1-1803-shoes-shop/tags","blobs_url":"https://api.github.com/repos/quangnguyen1/pr1-1803-shoes-shop/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/quangnguyen1/pr1-1803-shoes-shop/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/quangnguyen1/pr1-1803-shoes-shop/git/refs{/sha}","trees_url":"https://api.github.com/repos/quangnguyen1/pr1-1803-shoes-shop/git/trees{/sha}","statuses_url":"https://api.github.com/repos/quangnguyen1/pr1-1803-shoes-shop/statuses/{sha}","languages_url":"https://api.github.com/repos/quangnguyen1/pr1-1803-shoes-shop/languages","stargazers_url":"https://api.github.com/repos/quangnguyen1/pr1-1803-shoes-shop/stargazers","contributors_url":"https://api.github.com/repos/quangnguyen1/pr1-1803-shoes-shop/contributors","subscribers_url":"https://api.github.com/repos/quangnguyen1/pr1-1803-shoes-shop/subscribers","subscription_url":"https://api.github.com/repos/quangnguyen1/pr1-1803-shoes-shop/subscription","commits_url":"https://api.github.com/repos/quangnguyen1/pr1-1803-shoes-shop/commits{/sha}","git_commits_url":"https://api.github.com/repos/quangnguyen1/pr1-1803-shoes-shop/git/commits{/sha}","comments_url":"https://api.github.com/repos/quangnguyen1/pr1-1803-shoes-shop/comments{/number}","issue_comment_url":"https://api.github.com/repos/quangnguyen1/pr1-1803-shoes-shop/issues/comments{/number}","contents_url":"https://api.github.com/repos/quangnguyen1/pr1-1803-shoes-shop/contents/{+path}","compare_url":"https://api.github.com/repos/quangnguyen1/pr1-1803-shoes-shop/compare/{base}...{head}","merges_url":"https://api.github.com/repos/quangnguyen1/pr1-1803-shoes-shop/merges","archive_url":"https://api.github.com/repos/quangnguyen1/pr1-1803-shoes-shop/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/quangnguyen1/pr1-1803-shoes-shop/downloads","issues_url":"https://api.github.com/repos/quangnguyen1/pr1-1803-shoes-shop/issues{/number}","pulls_url":"https://api.github.com/repos/quangnguyen1/pr1-1803-shoes-shop/pulls{/number}","milestones_url":"https://api.github.com/repos/quangnguyen1/pr1-1803-shoes-shop/milestones{/number}","notifications_url":"https://api.github.com/repos/quangnguyen1/pr1-1803-shoes-shop/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/quangnguyen1/pr1-1803-shoes-shop/labels{/name}","releases_url":"https://api.github.com/repos/quangnguyen1/pr1-1803-shoes-shop/releases{/id}","deployments_url":"https://api.github.com/repos/quangnguyen1/pr1-1803-shoes-shop/deployments","created_at":"2018-10-16T13:04:29Z","updated_at":"2018-11-06T13:25:58Z","pushed_at":"2018-11-06T13:48:12Z","git_url":"git://github.com/quangnguyen1/pr1-1803-shoes-shop.git","ssh_url":"git@github.com:quangnguyen1/pr1-1803-shoes-shop.git","clone_url":"https://github.com/quangnguyen1/pr1-1803-shoes-shop.git","svn_url":"https://github.com/quangnguyen1/pr1-1803-shoes-shop","homepage":null,"size":1780,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"awesome-academy:master","ref":"master","sha":"10bc561972c9918f5df14c3889de797604659a72","user":{"login":"awesome-academy","id":33895223,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMzODk1MjIz","avatar_url":"https://avatars0.githubusercontent.com/u/33895223?v=4","gravatar_id":"","url":"https://api.github.com/users/awesome-academy","html_url":"https://github.com/awesome-academy","followers_url":"https://api.github.com/users/awesome-academy/followers","following_url":"https://api.github.com/users/awesome-academy/following{/other_user}","gists_url":"https://api.github.com/users/awesome-academy/gists{/gist_id}","starred_url":"https://api.github.com/users/awesome-academy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/awesome-academy/subscriptions","organizations_url":"https://api.github.com/users/awesome-academy/orgs","repos_url":"https://api.github.com/users/awesome-academy/repos","events_url":"https://api.github.com/users/awesome-academy/events{/privacy}","received_events_url":"https://api.github.com/users/awesome-academy/received_events","type":"Organization","site_admin":false},"repo":{"id":152856066,"node_id":"MDEwOlJlcG9zaXRvcnkxNTI4NTYwNjY=","name":"pr1-1803-shoes-shop","full_name":"awesome-academy/pr1-1803-shoes-shop","private":false,"owner":{"login":"awesome-academy","id":33895223,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMzODk1MjIz","avatar_url":"https://avatars0.githubusercontent.com/u/33895223?v=4","gravatar_id":"","url":"https://api.github.com/users/awesome-academy","html_url":"https://github.com/awesome-academy","followers_url":"https://api.github.com/users/awesome-academy/followers","following_url":"https://api.github.com/users/awesome-academy/following{/other_user}","gists_url":"https://api.github.com/users/awesome-academy/gists{/gist_id}","starred_url":"https://api.github.com/users/awesome-academy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/awesome-academy/subscriptions","organizations_url":"https://api.github.com/users/awesome-academy/orgs","repos_url":"https://api.github.com/users/awesome-academy/repos","events_url":"https://api.github.com/users/awesome-academy/events{/privacy}","received_events_url":"https://api.github.com/users/awesome-academy/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/awesome-academy/pr1-1803-shoes-shop","description":"Team 1: Sáng, Tuyền, Quang","fork":false,"url":"https://api.github.com/repos/awesome-academy/pr1-1803-shoes-shop","forks_url":"https://api.github.com/repos/awesome-academy/pr1-1803-shoes-shop/forks","keys_url":"https://api.github.com/repos/awesome-academy/pr1-1803-shoes-shop/keys{/key_id}","collaborators_url":"https://api.github.com/repos/awesome-academy/pr1-1803-shoes-shop/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/awesome-academy/pr1-1803-shoes-shop/teams","hooks_url":"https://api.github.com/repos/awesome-academy/pr1-1803-shoes-shop/hooks","issue_events_url":"https://api.github.com/repos/awesome-academy/pr1-1803-shoes-shop/issues/events{/number}","events_url":"https://api.github.com/repos/awesome-academy/pr1-1803-shoes-shop/events","assignees_url":"https://api.github.com/repos/awesome-academy/pr1-1803-shoes-shop/assignees{/user}","branches_url":"https://api.github.com/repos/awesome-academy/pr1-1803-shoes-shop/branches{/branch}","tags_url":"https://api.github.com/repos/awesome-academy/pr1-1803-shoes-shop/tags","blobs_url":"https://api.github.com/repos/awesome-academy/pr1-1803-shoes-shop/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/awesome-academy/pr1-1803-shoes-shop/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/awesome-academy/pr1-1803-shoes-shop/git/refs{/sha}","trees_url":"https://api.github.com/repos/awesome-academy/pr1-1803-shoes-shop/git/trees{/sha}","statuses_url":"https://api.github.com/repos/awesome-academy/pr1-1803-shoes-shop/statuses/{sha}","languages_url":"https://api.github.com/repos/awesome-academy/pr1-1803-shoes-shop/languages","stargazers_url":"https://api.github.com/repos/awesome-academy/pr1-1803-shoes-shop/stargazers","contributors_url":"https://api.github.com/repos/awesome-academy/pr1-1803-shoes-shop/contributors","subscribers_url":"https://api.github.com/repos/awesome-academy/pr1-1803-shoes-shop/subscribers","subscription_url":"https://api.github.com/repos/awesome-academy/pr1-1803-shoes-shop/subscription","commits_url":"https://api.github.com/repos/awesome-academy/pr1-1803-shoes-shop/commits{/sha}","git_commits_url":"https://api.github.com/repos/awesome-academy/pr1-1803-shoes-shop/git/commits{/sha}","comments_url":"https://api.github.com/repos/awesome-academy/pr1-1803-shoes-shop/comments{/number}","issue_comment_url":"https://api.github.com/repos/awesome-academy/pr1-1803-shoes-shop/issues/comments{/number}","contents_url":"https://api.github.com/repos/awesome-academy/pr1-1803-shoes-shop/contents/{+path}","compare_url":"https://api.github.com/repos/awesome-academy/pr1-1803-shoes-shop/compare/{base}...{head}","merges_url":"https://api.github.com/repos/awesome-academy/pr1-1803-shoes-shop/merges","archive_url":"https://api.github.com/repos/awesome-academy/pr1-1803-shoes-shop/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/awesome-academy/pr1-1803-shoes-shop/downloads","issues_url":"https://api.github.com/repos/awesome-academy/pr1-1803-shoes-shop/issues{/number}","pulls_url":"https://api.github.com/repos/awesome-academy/pr1-1803-shoes-shop/pulls{/number}","milestones_url":"https://api.github.com/repos/awesome-academy/pr1-1803-shoes-shop/milestones{/number}","notifications_url":"https://api.github.com/repos/awesome-academy/pr1-1803-shoes-shop/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/awesome-academy/pr1-1803-shoes-shop/labels{/name}","releases_url":"https://api.github.com/repos/awesome-academy/pr1-1803-shoes-shop/releases{/id}","deployments_url":"https://api.github.com/repos/awesome-academy/pr1-1803-shoes-shop/deployments","created_at":"2018-10-13T09:26:54Z","updated_at":"2018-11-06T12:16:31Z","pushed_at":"2018-11-06T13:48:13Z","git_url":"git://github.com/awesome-academy/pr1-1803-shoes-shop.git","ssh_url":"git@github.com:awesome-academy/pr1-1803-shoes-shop.git","clone_url":"https://github.com/awesome-academy/pr1-1803-shoes-shop.git","svn_url":"https://github.com/awesome-academy/pr1-1803-shoes-shop","homepage":null,"size":2220,"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":3,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":3,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/awesome-academy/pr1-1803-shoes-shop/pulls/9"},"html":{"href":"https://github.com/awesome-academy/pr1-1803-shoes-shop/pull/9"},"issue":{"href":"https://api.github.com/repos/awesome-academy/pr1-1803-shoes-shop/issues/9"},"comments":{"href":"https://api.github.com/repos/awesome-academy/pr1-1803-shoes-shop/issues/9/comments"},"review_comments":{"href":"https://api.github.com/repos/awesome-academy/pr1-1803-shoes-shop/pulls/9/comments"},"review_comment":{"href":"https://api.github.com/repos/awesome-academy/pr1-1803-shoes-shop/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/awesome-academy/pr1-1803-shoes-shop/pulls/9/commits"},"statuses":{"href":"https://api.github.com/repos/awesome-academy/pr1-1803-shoes-shop/statuses/094e2f85048b3376dff42eb34c761514691ad6aa"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"dogiadat"}}