{"action":"created","comment":{"url":"https://api.github.com/repos/framgia/mms_7/pulls/comments/32605933","id":32605933,"diff_hunk":"@@ -1,14 +1,33 @@\n class TeamsController < ApplicationController\n+  before_action :authenticate_user!\n+  before_action :leader_team, only: [:edit, :update]\n+\n   def index\n     @teams = Team.paginate page: params[:page], per_page: Settings.page.max_page\n   end\n \n-  def show\n+  def show    \n+    @team = Team.find params[:id]","path":"app/controllers/teams_controller.rb","position":11,"original_position":11,"commit_id":"920ce1a89954872f57fddd5fb5b188218a051b5b","original_commit_id":"920ce1a89954872f57fddd5fb5b188218a051b5b","user":{"login":"minhld1709","id":10452690,"avatar_url":"https://avatars.githubusercontent.com/u/10452690?v=3","gravatar_id":"","url":"https://api.github.com/users/minhld1709","html_url":"https://github.com/minhld1709","followers_url":"https://api.github.com/users/minhld1709/followers","following_url":"https://api.github.com/users/minhld1709/following{/other_user}","gists_url":"https://api.github.com/users/minhld1709/gists{/gist_id}","starred_url":"https://api.github.com/users/minhld1709/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/minhld1709/subscriptions","organizations_url":"https://api.github.com/users/minhld1709/orgs","repos_url":"https://api.github.com/users/minhld1709/repos","events_url":"https://api.github.com/users/minhld1709/events{/privacy}","received_events_url":"https://api.github.com/users/minhld1709/received_events","type":"User","site_admin":false},"body":"chỉ có button edit team trong show là cần lọc thôi, không muốn lọc cả show\r\n","created_at":"2015-06-17T08:48:33Z","updated_at":"2015-06-17T08:48:33Z","html_url":"https://github.com/framgia/mms_7/pull/28#discussion_r32605933","pull_request_url":"https://api.github.com/repos/framgia/mms_7/pulls/28","_links":{"self":{"href":"https://api.github.com/repos/framgia/mms_7/pulls/comments/32605933"},"html":{"href":"https://github.com/framgia/mms_7/pull/28#discussion_r32605933"},"pull_request":{"href":"https://api.github.com/repos/framgia/mms_7/pulls/28"}}},"pull_request":{"url":"https://api.github.com/repos/framgia/mms_7/pulls/28","id":37864855,"html_url":"https://github.com/framgia/mms_7/pull/28","diff_url":"https://github.com/framgia/mms_7/pull/28.diff","patch_url":"https://github.com/framgia/mms_7/pull/28.patch","issue_url":"https://api.github.com/repos/framgia/mms_7/issues/28","number":28,"state":"open","locked":false,"title":"user normal team","user":{"login":"minhld1709","id":10452690,"avatar_url":"https://avatars.githubusercontent.com/u/10452690?v=3","gravatar_id":"","url":"https://api.github.com/users/minhld1709","html_url":"https://github.com/minhld1709","followers_url":"https://api.github.com/users/minhld1709/followers","following_url":"https://api.github.com/users/minhld1709/following{/other_user}","gists_url":"https://api.github.com/users/minhld1709/gists{/gist_id}","starred_url":"https://api.github.com/users/minhld1709/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/minhld1709/subscriptions","organizations_url":"https://api.github.com/users/minhld1709/orgs","repos_url":"https://api.github.com/users/minhld1709/repos","events_url":"https://api.github.com/users/minhld1709/events{/privacy}","received_events_url":"https://api.github.com/users/minhld1709/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-06-17T04:29:41Z","updated_at":"2015-06-17T08:48:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"03fc5385b5db4e9324674926441703043538f744","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/framgia/mms_7/pulls/28/commits","review_comments_url":"https://api.github.com/repos/framgia/mms_7/pulls/28/comments","review_comment_url":"https://api.github.com/repos/framgia/mms_7/pulls/comments{/number}","comments_url":"https://api.github.com/repos/framgia/mms_7/issues/28/comments","statuses_url":"https://api.github.com/repos/framgia/mms_7/statuses/920ce1a89954872f57fddd5fb5b188218a051b5b","head":{"label":"minhld1709:leader_team_project_nested","ref":"leader_team_project_nested","sha":"920ce1a89954872f57fddd5fb5b188218a051b5b","user":{"login":"minhld1709","id":10452690,"avatar_url":"https://avatars.githubusercontent.com/u/10452690?v=3","gravatar_id":"","url":"https://api.github.com/users/minhld1709","html_url":"https://github.com/minhld1709","followers_url":"https://api.github.com/users/minhld1709/followers","following_url":"https://api.github.com/users/minhld1709/following{/other_user}","gists_url":"https://api.github.com/users/minhld1709/gists{/gist_id}","starred_url":"https://api.github.com/users/minhld1709/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/minhld1709/subscriptions","organizations_url":"https://api.github.com/users/minhld1709/orgs","repos_url":"https://api.github.com/users/minhld1709/repos","events_url":"https://api.github.com/users/minhld1709/events{/privacy}","received_events_url":"https://api.github.com/users/minhld1709/received_events","type":"User","site_admin":false},"repo":{"id":36773320,"name":"mms_7","full_name":"minhld1709/mms_7","owner":{"login":"minhld1709","id":10452690,"avatar_url":"https://avatars.githubusercontent.com/u/10452690?v=3","gravatar_id":"","url":"https://api.github.com/users/minhld1709","html_url":"https://github.com/minhld1709","followers_url":"https://api.github.com/users/minhld1709/followers","following_url":"https://api.github.com/users/minhld1709/following{/other_user}","gists_url":"https://api.github.com/users/minhld1709/gists{/gist_id}","starred_url":"https://api.github.com/users/minhld1709/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/minhld1709/subscriptions","organizations_url":"https://api.github.com/users/minhld1709/orgs","repos_url":"https://api.github.com/users/minhld1709/repos","events_url":"https://api.github.com/users/minhld1709/events{/privacy}","received_events_url":"https://api.github.com/users/minhld1709/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/minhld1709/mms_7","description":"Member Management Systeam (training)","fork":true,"url":"https://api.github.com/repos/minhld1709/mms_7","forks_url":"https://api.github.com/repos/minhld1709/mms_7/forks","keys_url":"https://api.github.com/repos/minhld1709/mms_7/keys{/key_id}","collaborators_url":"https://api.github.com/repos/minhld1709/mms_7/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/minhld1709/mms_7/teams","hooks_url":"https://api.github.com/repos/minhld1709/mms_7/hooks","issue_events_url":"https://api.github.com/repos/minhld1709/mms_7/issues/events{/number}","events_url":"https://api.github.com/repos/minhld1709/mms_7/events","assignees_url":"https://api.github.com/repos/minhld1709/mms_7/assignees{/user}","branches_url":"https://api.github.com/repos/minhld1709/mms_7/branches{/branch}","tags_url":"https://api.github.com/repos/minhld1709/mms_7/tags","blobs_url":"https://api.github.com/repos/minhld1709/mms_7/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/minhld1709/mms_7/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/minhld1709/mms_7/git/refs{/sha}","trees_url":"https://api.github.com/repos/minhld1709/mms_7/git/trees{/sha}","statuses_url":"https://api.github.com/repos/minhld1709/mms_7/statuses/{sha}","languages_url":"https://api.github.com/repos/minhld1709/mms_7/languages","stargazers_url":"https://api.github.com/repos/minhld1709/mms_7/stargazers","contributors_url":"https://api.github.com/repos/minhld1709/mms_7/contributors","subscribers_url":"https://api.github.com/repos/minhld1709/mms_7/subscribers","subscription_url":"https://api.github.com/repos/minhld1709/mms_7/subscription","commits_url":"https://api.github.com/repos/minhld1709/mms_7/commits{/sha}","git_commits_url":"https://api.github.com/repos/minhld1709/mms_7/git/commits{/sha}","comments_url":"https://api.github.com/repos/minhld1709/mms_7/comments{/number}","issue_comment_url":"https://api.github.com/repos/minhld1709/mms_7/issues/comments{/number}","contents_url":"https://api.github.com/repos/minhld1709/mms_7/contents/{+path}","compare_url":"https://api.github.com/repos/minhld1709/mms_7/compare/{base}...{head}","merges_url":"https://api.github.com/repos/minhld1709/mms_7/merges","archive_url":"https://api.github.com/repos/minhld1709/mms_7/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/minhld1709/mms_7/downloads","issues_url":"https://api.github.com/repos/minhld1709/mms_7/issues{/number}","pulls_url":"https://api.github.com/repos/minhld1709/mms_7/pulls{/number}","milestones_url":"https://api.github.com/repos/minhld1709/mms_7/milestones{/number}","notifications_url":"https://api.github.com/repos/minhld1709/mms_7/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/minhld1709/mms_7/labels{/name}","releases_url":"https://api.github.com/repos/minhld1709/mms_7/releases{/id}","created_at":"2015-06-03T01:53:03Z","updated_at":"2015-06-02T06:35:51Z","pushed_at":"2015-06-17T08:06:57Z","git_url":"git://github.com/minhld1709/mms_7.git","ssh_url":"git@github.com:minhld1709/mms_7.git","clone_url":"https://github.com/minhld1709/mms_7.git","svn_url":"https://github.com/minhld1709/mms_7","homepage":null,"size":380,"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":"bd802a5395db64eb00bc13a0b4af1775b5c5c364","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":36713200,"name":"mms_7","full_name":"framgia/mms_7","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/mms_7","description":"Member Management Systeam (training)","fork":false,"url":"https://api.github.com/repos/framgia/mms_7","forks_url":"https://api.github.com/repos/framgia/mms_7/forks","keys_url":"https://api.github.com/repos/framgia/mms_7/keys{/key_id}","collaborators_url":"https://api.github.com/repos/framgia/mms_7/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/framgia/mms_7/teams","hooks_url":"https://api.github.com/repos/framgia/mms_7/hooks","issue_events_url":"https://api.github.com/repos/framgia/mms_7/issues/events{/number}","events_url":"https://api.github.com/repos/framgia/mms_7/events","assignees_url":"https://api.github.com/repos/framgia/mms_7/assignees{/user}","branches_url":"https://api.github.com/repos/framgia/mms_7/branches{/branch}","tags_url":"https://api.github.com/repos/framgia/mms_7/tags","blobs_url":"https://api.github.com/repos/framgia/mms_7/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/framgia/mms_7/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/framgia/mms_7/git/refs{/sha}","trees_url":"https://api.github.com/repos/framgia/mms_7/git/trees{/sha}","statuses_url":"https://api.github.com/repos/framgia/mms_7/statuses/{sha}","languages_url":"https://api.github.com/repos/framgia/mms_7/languages","stargazers_url":"https://api.github.com/repos/framgia/mms_7/stargazers","contributors_url":"https://api.github.com/repos/framgia/mms_7/contributors","subscribers_url":"https://api.github.com/repos/framgia/mms_7/subscribers","subscription_url":"https://api.github.com/repos/framgia/mms_7/subscription","commits_url":"https://api.github.com/repos/framgia/mms_7/commits{/sha}","git_commits_url":"https://api.github.com/repos/framgia/mms_7/git/commits{/sha}","comments_url":"https://api.github.com/repos/framgia/mms_7/comments{/number}","issue_comment_url":"https://api.github.com/repos/framgia/mms_7/issues/comments{/number}","contents_url":"https://api.github.com/repos/framgia/mms_7/contents/{+path}","compare_url":"https://api.github.com/repos/framgia/mms_7/compare/{base}...{head}","merges_url":"https://api.github.com/repos/framgia/mms_7/merges","archive_url":"https://api.github.com/repos/framgia/mms_7/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/framgia/mms_7/downloads","issues_url":"https://api.github.com/repos/framgia/mms_7/issues{/number}","pulls_url":"https://api.github.com/repos/framgia/mms_7/pulls{/number}","milestones_url":"https://api.github.com/repos/framgia/mms_7/milestones{/number}","notifications_url":"https://api.github.com/repos/framgia/mms_7/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/framgia/mms_7/labels{/name}","releases_url":"https://api.github.com/repos/framgia/mms_7/releases{/id}","created_at":"2015-06-02T06:35:51Z","updated_at":"2015-06-02T06:35:51Z","pushed_at":"2015-06-17T08:44:45Z","git_url":"git://github.com/framgia/mms_7.git","ssh_url":"git@github.com:framgia/mms_7.git","clone_url":"https://github.com/framgia/mms_7.git","svn_url":"https://github.com/framgia/mms_7","homepage":null,"size":829,"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":1,"forks":2,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/framgia/mms_7/pulls/28"},"html":{"href":"https://github.com/framgia/mms_7/pull/28"},"issue":{"href":"https://api.github.com/repos/framgia/mms_7/issues/28"},"comments":{"href":"https://api.github.com/repos/framgia/mms_7/issues/28/comments"},"review_comments":{"href":"https://api.github.com/repos/framgia/mms_7/pulls/28/comments"},"review_comment":{"href":"https://api.github.com/repos/framgia/mms_7/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/framgia/mms_7/pulls/28/commits"},"statuses":{"href":"https://api.github.com/repos/framgia/mms_7/statuses/920ce1a89954872f57fddd5fb5b188218a051b5b"}}}}