{"action":"created","comment":{"url":"https://api.github.com/repos/framgia/fels_143/pulls/comments/67306041","id":67306041,"diff_hunk":"@@ -12,8 +12,17 @@ def verify_admin\n \n   def verify_login\n     unless logged_in?\n-      flash[:danger] = t \"signin.not_login_error\"\n-      redirect_to login_path\n+      store_location\n+      flash[:danger] = t \"signin.pls_login\"\n+      redirect_to login_url\n     end\n   end\n+\n+  def correct_user\n+    redirect_to root_path unless load_user == current_user\n+  end\n+\n+  def load_user","path":"app/controllers/application_controller.rb","position":16,"original_position":16,"commit_id":"26ec320a487f05e10d0c70074916909b3d75eb6b","original_commit_id":"26ec320a487f05e10d0c70074916909b3d75eb6b","user":{"login":"hellovietnam93","id":8023606,"avatar_url":"https://avatars.githubusercontent.com/u/8023606?v=3","gravatar_id":"","url":"https://api.github.com/users/hellovietnam93","html_url":"https://github.com/hellovietnam93","followers_url":"https://api.github.com/users/hellovietnam93/followers","following_url":"https://api.github.com/users/hellovietnam93/following{/other_user}","gists_url":"https://api.github.com/users/hellovietnam93/gists{/gist_id}","starred_url":"https://api.github.com/users/hellovietnam93/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hellovietnam93/subscriptions","organizations_url":"https://api.github.com/users/hellovietnam93/orgs","repos_url":"https://api.github.com/users/hellovietnam93/repos","events_url":"https://api.github.com/users/hellovietnam93/events{/privacy}","received_events_url":"https://api.github.com/users/hellovietnam93/received_events","type":"User","site_admin":false},"body":"cái này chỉ sử dunjg trong cotrller thôi mà\r\n","created_at":"2016-06-16T08:32:11Z","updated_at":"2016-06-16T08:32:11Z","html_url":"https://github.com/framgia/fels_143/pull/12#discussion_r67306041","pull_request_url":"https://api.github.com/repos/framgia/fels_143/pulls/12","_links":{"self":{"href":"https://api.github.com/repos/framgia/fels_143/pulls/comments/67306041"},"html":{"href":"https://github.com/framgia/fels_143/pull/12#discussion_r67306041"},"pull_request":{"href":"https://api.github.com/repos/framgia/fels_143/pulls/12"}}},"pull_request":{"url":"https://api.github.com/repos/framgia/fels_143/pulls/12","id":74038453,"html_url":"https://github.com/framgia/fels_143/pull/12","diff_url":"https://github.com/framgia/fels_143/pull/12.diff","patch_url":"https://github.com/framgia/fels_143/pull/12.patch","issue_url":"https://api.github.com/repos/framgia/fels_143/issues/12","number":12,"state":"open","locked":false,"title":"show users and edit, update user","user":{"login":"luuthomvp","id":5625792,"avatar_url":"https://avatars.githubusercontent.com/u/5625792?v=3","gravatar_id":"","url":"https://api.github.com/users/luuthomvp","html_url":"https://github.com/luuthomvp","followers_url":"https://api.github.com/users/luuthomvp/followers","following_url":"https://api.github.com/users/luuthomvp/following{/other_user}","gists_url":"https://api.github.com/users/luuthomvp/gists{/gist_id}","starred_url":"https://api.github.com/users/luuthomvp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luuthomvp/subscriptions","organizations_url":"https://api.github.com/users/luuthomvp/orgs","repos_url":"https://api.github.com/users/luuthomvp/repos","events_url":"https://api.github.com/users/luuthomvp/events{/privacy}","received_events_url":"https://api.github.com/users/luuthomvp/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-06-16T08:10:53Z","updated_at":"2016-06-16T08:32:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"12da8bcdccd2ac396dce6408ec8aa2e8a3deb2b0","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/framgia/fels_143/pulls/12/commits","review_comments_url":"https://api.github.com/repos/framgia/fels_143/pulls/12/comments","review_comment_url":"https://api.github.com/repos/framgia/fels_143/pulls/comments{/number}","comments_url":"https://api.github.com/repos/framgia/fels_143/issues/12/comments","statuses_url":"https://api.github.com/repos/framgia/fels_143/statuses/26ec320a487f05e10d0c70074916909b3d75eb6b","head":{"label":"luuthomvp:65197-user-show-users","ref":"65197-user-show-users","sha":"26ec320a487f05e10d0c70074916909b3d75eb6b","user":{"login":"luuthomvp","id":5625792,"avatar_url":"https://avatars.githubusercontent.com/u/5625792?v=3","gravatar_id":"","url":"https://api.github.com/users/luuthomvp","html_url":"https://github.com/luuthomvp","followers_url":"https://api.github.com/users/luuthomvp/followers","following_url":"https://api.github.com/users/luuthomvp/following{/other_user}","gists_url":"https://api.github.com/users/luuthomvp/gists{/gist_id}","starred_url":"https://api.github.com/users/luuthomvp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luuthomvp/subscriptions","organizations_url":"https://api.github.com/users/luuthomvp/orgs","repos_url":"https://api.github.com/users/luuthomvp/repos","events_url":"https://api.github.com/users/luuthomvp/events{/privacy}","received_events_url":"https://api.github.com/users/luuthomvp/received_events","type":"User","site_admin":false},"repo":{"id":60822263,"name":"fels_143","full_name":"luuthomvp/fels_143","owner":{"login":"luuthomvp","id":5625792,"avatar_url":"https://avatars.githubusercontent.com/u/5625792?v=3","gravatar_id":"","url":"https://api.github.com/users/luuthomvp","html_url":"https://github.com/luuthomvp","followers_url":"https://api.github.com/users/luuthomvp/followers","following_url":"https://api.github.com/users/luuthomvp/following{/other_user}","gists_url":"https://api.github.com/users/luuthomvp/gists{/gist_id}","starred_url":"https://api.github.com/users/luuthomvp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luuthomvp/subscriptions","organizations_url":"https://api.github.com/users/luuthomvp/orgs","repos_url":"https://api.github.com/users/luuthomvp/repos","events_url":"https://api.github.com/users/luuthomvp/events{/privacy}","received_events_url":"https://api.github.com/users/luuthomvp/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/luuthomvp/fels_143","description":"Framgia E-Learning System (training)","fork":true,"url":"https://api.github.com/repos/luuthomvp/fels_143","forks_url":"https://api.github.com/repos/luuthomvp/fels_143/forks","keys_url":"https://api.github.com/repos/luuthomvp/fels_143/keys{/key_id}","collaborators_url":"https://api.github.com/repos/luuthomvp/fels_143/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/luuthomvp/fels_143/teams","hooks_url":"https://api.github.com/repos/luuthomvp/fels_143/hooks","issue_events_url":"https://api.github.com/repos/luuthomvp/fels_143/issues/events{/number}","events_url":"https://api.github.com/repos/luuthomvp/fels_143/events","assignees_url":"https://api.github.com/repos/luuthomvp/fels_143/assignees{/user}","branches_url":"https://api.github.com/repos/luuthomvp/fels_143/branches{/branch}","tags_url":"https://api.github.com/repos/luuthomvp/fels_143/tags","blobs_url":"https://api.github.com/repos/luuthomvp/fels_143/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/luuthomvp/fels_143/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/luuthomvp/fels_143/git/refs{/sha}","trees_url":"https://api.github.com/repos/luuthomvp/fels_143/git/trees{/sha}","statuses_url":"https://api.github.com/repos/luuthomvp/fels_143/statuses/{sha}","languages_url":"https://api.github.com/repos/luuthomvp/fels_143/languages","stargazers_url":"https://api.github.com/repos/luuthomvp/fels_143/stargazers","contributors_url":"https://api.github.com/repos/luuthomvp/fels_143/contributors","subscribers_url":"https://api.github.com/repos/luuthomvp/fels_143/subscribers","subscription_url":"https://api.github.com/repos/luuthomvp/fels_143/subscription","commits_url":"https://api.github.com/repos/luuthomvp/fels_143/commits{/sha}","git_commits_url":"https://api.github.com/repos/luuthomvp/fels_143/git/commits{/sha}","comments_url":"https://api.github.com/repos/luuthomvp/fels_143/comments{/number}","issue_comment_url":"https://api.github.com/repos/luuthomvp/fels_143/issues/comments{/number}","contents_url":"https://api.github.com/repos/luuthomvp/fels_143/contents/{+path}","compare_url":"https://api.github.com/repos/luuthomvp/fels_143/compare/{base}...{head}","merges_url":"https://api.github.com/repos/luuthomvp/fels_143/merges","archive_url":"https://api.github.com/repos/luuthomvp/fels_143/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/luuthomvp/fels_143/downloads","issues_url":"https://api.github.com/repos/luuthomvp/fels_143/issues{/number}","pulls_url":"https://api.github.com/repos/luuthomvp/fels_143/pulls{/number}","milestones_url":"https://api.github.com/repos/luuthomvp/fels_143/milestones{/number}","notifications_url":"https://api.github.com/repos/luuthomvp/fels_143/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/luuthomvp/fels_143/labels{/name}","releases_url":"https://api.github.com/repos/luuthomvp/fels_143/releases{/id}","deployments_url":"https://api.github.com/repos/luuthomvp/fels_143/deployments","created_at":"2016-06-10T03:38:06Z","updated_at":"2016-06-02T10:23:47Z","pushed_at":"2016-06-16T08:26:21Z","git_url":"git://github.com/luuthomvp/fels_143.git","ssh_url":"git@github.com:luuthomvp/fels_143.git","clone_url":"https://github.com/luuthomvp/fels_143.git","svn_url":"https://github.com/luuthomvp/fels_143","homepage":null,"size":43,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"framgia:develop","ref":"develop","sha":"866aeba85836e4bb3c61ad4fd0866b970a40ba89","user":{"login":"framgia","id":2322183,"avatar_url":"https://avatars.githubusercontent.com/u/2322183?v=3","gravatar_id":"","url":"https://api.github.com/users/framgia","html_url":"https://github.com/framgia","followers_url":"https://api.github.com/users/framgia/followers","following_url":"https://api.github.com/users/framgia/following{/other_user}","gists_url":"https://api.github.com/users/framgia/gists{/gist_id}","starred_url":"https://api.github.com/users/framgia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/framgia/subscriptions","organizations_url":"https://api.github.com/users/framgia/orgs","repos_url":"https://api.github.com/users/framgia/repos","events_url":"https://api.github.com/users/framgia/events{/privacy}","received_events_url":"https://api.github.com/users/framgia/received_events","type":"Organization","site_admin":false},"repo":{"id":60254783,"name":"fels_143","full_name":"framgia/fels_143","owner":{"login":"framgia","id":2322183,"avatar_url":"https://avatars.githubusercontent.com/u/2322183?v=3","gravatar_id":"","url":"https://api.github.com/users/framgia","html_url":"https://github.com/framgia","followers_url":"https://api.github.com/users/framgia/followers","following_url":"https://api.github.com/users/framgia/following{/other_user}","gists_url":"https://api.github.com/users/framgia/gists{/gist_id}","starred_url":"https://api.github.com/users/framgia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/framgia/subscriptions","organizations_url":"https://api.github.com/users/framgia/orgs","repos_url":"https://api.github.com/users/framgia/repos","events_url":"https://api.github.com/users/framgia/events{/privacy}","received_events_url":"https://api.github.com/users/framgia/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/framgia/fels_143","description":"Framgia E-Learning System (training)","fork":false,"url":"https://api.github.com/repos/framgia/fels_143","forks_url":"https://api.github.com/repos/framgia/fels_143/forks","keys_url":"https://api.github.com/repos/framgia/fels_143/keys{/key_id}","collaborators_url":"https://api.github.com/repos/framgia/fels_143/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/framgia/fels_143/teams","hooks_url":"https://api.github.com/repos/framgia/fels_143/hooks","issue_events_url":"https://api.github.com/repos/framgia/fels_143/issues/events{/number}","events_url":"https://api.github.com/repos/framgia/fels_143/events","assignees_url":"https://api.github.com/repos/framgia/fels_143/assignees{/user}","branches_url":"https://api.github.com/repos/framgia/fels_143/branches{/branch}","tags_url":"https://api.github.com/repos/framgia/fels_143/tags","blobs_url":"https://api.github.com/repos/framgia/fels_143/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/framgia/fels_143/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/framgia/fels_143/git/refs{/sha}","trees_url":"https://api.github.com/repos/framgia/fels_143/git/trees{/sha}","statuses_url":"https://api.github.com/repos/framgia/fels_143/statuses/{sha}","languages_url":"https://api.github.com/repos/framgia/fels_143/languages","stargazers_url":"https://api.github.com/repos/framgia/fels_143/stargazers","contributors_url":"https://api.github.com/repos/framgia/fels_143/contributors","subscribers_url":"https://api.github.com/repos/framgia/fels_143/subscribers","subscription_url":"https://api.github.com/repos/framgia/fels_143/subscription","commits_url":"https://api.github.com/repos/framgia/fels_143/commits{/sha}","git_commits_url":"https://api.github.com/repos/framgia/fels_143/git/commits{/sha}","comments_url":"https://api.github.com/repos/framgia/fels_143/comments{/number}","issue_comment_url":"https://api.github.com/repos/framgia/fels_143/issues/comments{/number}","contents_url":"https://api.github.com/repos/framgia/fels_143/contents/{+path}","compare_url":"https://api.github.com/repos/framgia/fels_143/compare/{base}...{head}","merges_url":"https://api.github.com/repos/framgia/fels_143/merges","archive_url":"https://api.github.com/repos/framgia/fels_143/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/framgia/fels_143/downloads","issues_url":"https://api.github.com/repos/framgia/fels_143/issues{/number}","pulls_url":"https://api.github.com/repos/framgia/fels_143/pulls{/number}","milestones_url":"https://api.github.com/repos/framgia/fels_143/milestones{/number}","notifications_url":"https://api.github.com/repos/framgia/fels_143/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/framgia/fels_143/labels{/name}","releases_url":"https://api.github.com/repos/framgia/fels_143/releases{/id}","deployments_url":"https://api.github.com/repos/framgia/fels_143/deployments","created_at":"2016-06-02T10:23:47Z","updated_at":"2016-06-02T10:23:47Z","pushed_at":"2016-06-16T08:26:22Z","git_url":"git://github.com/framgia/fels_143.git","ssh_url":"git@github.com:framgia/fels_143.git","clone_url":"https://github.com/framgia/fels_143.git","svn_url":"https://github.com/framgia/fels_143","homepage":null,"size":43,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":4,"forks":2,"open_issues":4,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/framgia/fels_143/pulls/12"},"html":{"href":"https://github.com/framgia/fels_143/pull/12"},"issue":{"href":"https://api.github.com/repos/framgia/fels_143/issues/12"},"comments":{"href":"https://api.github.com/repos/framgia/fels_143/issues/12/comments"},"review_comments":{"href":"https://api.github.com/repos/framgia/fels_143/pulls/12/comments"},"review_comment":{"href":"https://api.github.com/repos/framgia/fels_143/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/framgia/fels_143/pulls/12/commits"},"statuses":{"href":"https://api.github.com/repos/framgia/fels_143/statuses/26ec320a487f05e10d0c70074916909b3d75eb6b"}}}}
{"actor":{"display_login":"hellovietnam93"}}