{"action":"created","comment":{"url":"https://api.github.com/repos/digitalnatives/course_planner/pulls/comments/116683503","pull_request_review_id":38322231,"id":116683503,"diff_hunk":"@@ -5,6 +5,10 @@ defmodule CoursePlanner.TaskController do\n   alias CoursePlanner.Tasks.Task\n   alias CoursePlanner.Volunteers\n \n+  import Canary.Plugs\n+  plug :authorize_resource, model: Task, id_name: \"task_id\", only: [:grab, :done]\n+  plug :authorize_resource, model: Task, except: [:grab, :done]","path":"web/controllers/task_controller.ex","position":6,"original_position":6,"commit_id":"1bb2dcb74ce4855dda3d9e35bded4f4e88d18f04","original_commit_id":"1bb2dcb74ce4855dda3d9e35bded4f4e88d18f04","user":{"login":"ggpasqualino","id":821260,"avatar_url":"https://avatars0.githubusercontent.com/u/821260?v=3","gravatar_id":"","url":"https://api.github.com/users/ggpasqualino","html_url":"https://github.com/ggpasqualino","followers_url":"https://api.github.com/users/ggpasqualino/followers","following_url":"https://api.github.com/users/ggpasqualino/following{/other_user}","gists_url":"https://api.github.com/users/ggpasqualino/gists{/gist_id}","starred_url":"https://api.github.com/users/ggpasqualino/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ggpasqualino/subscriptions","organizations_url":"https://api.github.com/users/ggpasqualino/orgs","repos_url":"https://api.github.com/users/ggpasqualino/repos","events_url":"https://api.github.com/users/ggpasqualino/events{/privacy}","received_events_url":"https://api.github.com/users/ggpasqualino/received_events","type":"User","site_admin":false},"body":"the `:done` action doesn't exist anymore","created_at":"2017-05-16T08:35:15Z","updated_at":"2017-05-16T08:35:15Z","html_url":"https://github.com/digitalnatives/course_planner/pull/48#discussion_r116683503","pull_request_url":"https://api.github.com/repos/digitalnatives/course_planner/pulls/48","_links":{"self":{"href":"https://api.github.com/repos/digitalnatives/course_planner/pulls/comments/116683503"},"html":{"href":"https://github.com/digitalnatives/course_planner/pull/48#discussion_r116683503"},"pull_request":{"href":"https://api.github.com/repos/digitalnatives/course_planner/pulls/48"}}},"pull_request":{"url":"https://api.github.com/repos/digitalnatives/course_planner/pulls/48","id":120352484,"html_url":"https://github.com/digitalnatives/course_planner/pull/48","diff_url":"https://github.com/digitalnatives/course_planner/pull/48.diff","patch_url":"https://github.com/digitalnatives/course_planner/pull/48.patch","issue_url":"https://api.github.com/repos/digitalnatives/course_planner/issues/48","number":48,"state":"open","locked":false,"title":"Restrict user permission","user":{"login":"rhnonose","id":2522445,"avatar_url":"https://avatars3.githubusercontent.com/u/2522445?v=3","gravatar_id":"","url":"https://api.github.com/users/rhnonose","html_url":"https://github.com/rhnonose","followers_url":"https://api.github.com/users/rhnonose/followers","following_url":"https://api.github.com/users/rhnonose/following{/other_user}","gists_url":"https://api.github.com/users/rhnonose/gists{/gist_id}","starred_url":"https://api.github.com/users/rhnonose/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rhnonose/subscriptions","organizations_url":"https://api.github.com/users/rhnonose/orgs","repos_url":"https://api.github.com/users/rhnonose/repos","events_url":"https://api.github.com/users/rhnonose/events{/privacy}","received_events_url":"https://api.github.com/users/rhnonose/received_events","type":"User","site_admin":false},"body":"- Setup user permission with canada and canary\r\n- Restrict volunteers' permission","created_at":"2017-05-12T15:48:57Z","updated_at":"2017-05-16T08:35:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"40bd6a73471bdce0bce9d7c95e2668d7f215635b","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/digitalnatives/course_planner/pulls/48/commits","review_comments_url":"https://api.github.com/repos/digitalnatives/course_planner/pulls/48/comments","review_comment_url":"https://api.github.com/repos/digitalnatives/course_planner/pulls/comments{/number}","comments_url":"https://api.github.com/repos/digitalnatives/course_planner/issues/48/comments","statuses_url":"https://api.github.com/repos/digitalnatives/course_planner/statuses/1bb2dcb74ce4855dda3d9e35bded4f4e88d18f04","head":{"label":"digitalnatives:nonose/user_permission","ref":"nonose/user_permission","sha":"1bb2dcb74ce4855dda3d9e35bded4f4e88d18f04","user":{"login":"digitalnatives","id":1004107,"avatar_url":"https://avatars2.githubusercontent.com/u/1004107?v=3","gravatar_id":"","url":"https://api.github.com/users/digitalnatives","html_url":"https://github.com/digitalnatives","followers_url":"https://api.github.com/users/digitalnatives/followers","following_url":"https://api.github.com/users/digitalnatives/following{/other_user}","gists_url":"https://api.github.com/users/digitalnatives/gists{/gist_id}","starred_url":"https://api.github.com/users/digitalnatives/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/digitalnatives/subscriptions","organizations_url":"https://api.github.com/users/digitalnatives/orgs","repos_url":"https://api.github.com/users/digitalnatives/repos","events_url":"https://api.github.com/users/digitalnatives/events{/privacy}","received_events_url":"https://api.github.com/users/digitalnatives/received_events","type":"Organization","site_admin":false},"repo":{"id":87435320,"name":"course_planner","full_name":"digitalnatives/course_planner","owner":{"login":"digitalnatives","id":1004107,"avatar_url":"https://avatars2.githubusercontent.com/u/1004107?v=3","gravatar_id":"","url":"https://api.github.com/users/digitalnatives","html_url":"https://github.com/digitalnatives","followers_url":"https://api.github.com/users/digitalnatives/followers","following_url":"https://api.github.com/users/digitalnatives/following{/other_user}","gists_url":"https://api.github.com/users/digitalnatives/gists{/gist_id}","starred_url":"https://api.github.com/users/digitalnatives/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/digitalnatives/subscriptions","organizations_url":"https://api.github.com/users/digitalnatives/orgs","repos_url":"https://api.github.com/users/digitalnatives/repos","events_url":"https://api.github.com/users/digitalnatives/events{/privacy}","received_events_url":"https://api.github.com/users/digitalnatives/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/digitalnatives/course_planner","description":"An application to manage educational courses","fork":false,"url":"https://api.github.com/repos/digitalnatives/course_planner","forks_url":"https://api.github.com/repos/digitalnatives/course_planner/forks","keys_url":"https://api.github.com/repos/digitalnatives/course_planner/keys{/key_id}","collaborators_url":"https://api.github.com/repos/digitalnatives/course_planner/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/digitalnatives/course_planner/teams","hooks_url":"https://api.github.com/repos/digitalnatives/course_planner/hooks","issue_events_url":"https://api.github.com/repos/digitalnatives/course_planner/issues/events{/number}","events_url":"https://api.github.com/repos/digitalnatives/course_planner/events","assignees_url":"https://api.github.com/repos/digitalnatives/course_planner/assignees{/user}","branches_url":"https://api.github.com/repos/digitalnatives/course_planner/branches{/branch}","tags_url":"https://api.github.com/repos/digitalnatives/course_planner/tags","blobs_url":"https://api.github.com/repos/digitalnatives/course_planner/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/digitalnatives/course_planner/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/digitalnatives/course_planner/git/refs{/sha}","trees_url":"https://api.github.com/repos/digitalnatives/course_planner/git/trees{/sha}","statuses_url":"https://api.github.com/repos/digitalnatives/course_planner/statuses/{sha}","languages_url":"https://api.github.com/repos/digitalnatives/course_planner/languages","stargazers_url":"https://api.github.com/repos/digitalnatives/course_planner/stargazers","contributors_url":"https://api.github.com/repos/digitalnatives/course_planner/contributors","subscribers_url":"https://api.github.com/repos/digitalnatives/course_planner/subscribers","subscription_url":"https://api.github.com/repos/digitalnatives/course_planner/subscription","commits_url":"https://api.github.com/repos/digitalnatives/course_planner/commits{/sha}","git_commits_url":"https://api.github.com/repos/digitalnatives/course_planner/git/commits{/sha}","comments_url":"https://api.github.com/repos/digitalnatives/course_planner/comments{/number}","issue_comment_url":"https://api.github.com/repos/digitalnatives/course_planner/issues/comments{/number}","contents_url":"https://api.github.com/repos/digitalnatives/course_planner/contents/{+path}","compare_url":"https://api.github.com/repos/digitalnatives/course_planner/compare/{base}...{head}","merges_url":"https://api.github.com/repos/digitalnatives/course_planner/merges","archive_url":"https://api.github.com/repos/digitalnatives/course_planner/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/digitalnatives/course_planner/downloads","issues_url":"https://api.github.com/repos/digitalnatives/course_planner/issues{/number}","pulls_url":"https://api.github.com/repos/digitalnatives/course_planner/pulls{/number}","milestones_url":"https://api.github.com/repos/digitalnatives/course_planner/milestones{/number}","notifications_url":"https://api.github.com/repos/digitalnatives/course_planner/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/digitalnatives/course_planner/labels{/name}","releases_url":"https://api.github.com/repos/digitalnatives/course_planner/releases{/id}","deployments_url":"https://api.github.com/repos/digitalnatives/course_planner/deployments","created_at":"2017-04-06T13:56:59Z","updated_at":"2017-04-29T18:50:16Z","pushed_at":"2017-05-16T08:15:59Z","git_url":"git://github.com/digitalnatives/course_planner.git","ssh_url":"git@github.com:digitalnatives/course_planner.git","clone_url":"https://github.com/digitalnatives/course_planner.git","svn_url":"https://github.com/digitalnatives/course_planner","homepage":"","size":329,"stargazers_count":5,"watchers_count":5,"language":"Elixir","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":4,"forks":0,"open_issues":4,"watchers":5,"default_branch":"master"}},"base":{"label":"digitalnatives:nonose/manage_tasks","ref":"nonose/manage_tasks","sha":"c538731317b68769b23f0e20422cc32c7e0c7fe5","user":{"login":"digitalnatives","id":1004107,"avatar_url":"https://avatars2.githubusercontent.com/u/1004107?v=3","gravatar_id":"","url":"https://api.github.com/users/digitalnatives","html_url":"https://github.com/digitalnatives","followers_url":"https://api.github.com/users/digitalnatives/followers","following_url":"https://api.github.com/users/digitalnatives/following{/other_user}","gists_url":"https://api.github.com/users/digitalnatives/gists{/gist_id}","starred_url":"https://api.github.com/users/digitalnatives/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/digitalnatives/subscriptions","organizations_url":"https://api.github.com/users/digitalnatives/orgs","repos_url":"https://api.github.com/users/digitalnatives/repos","events_url":"https://api.github.com/users/digitalnatives/events{/privacy}","received_events_url":"https://api.github.com/users/digitalnatives/received_events","type":"Organization","site_admin":false},"repo":{"id":87435320,"name":"course_planner","full_name":"digitalnatives/course_planner","owner":{"login":"digitalnatives","id":1004107,"avatar_url":"https://avatars2.githubusercontent.com/u/1004107?v=3","gravatar_id":"","url":"https://api.github.com/users/digitalnatives","html_url":"https://github.com/digitalnatives","followers_url":"https://api.github.com/users/digitalnatives/followers","following_url":"https://api.github.com/users/digitalnatives/following{/other_user}","gists_url":"https://api.github.com/users/digitalnatives/gists{/gist_id}","starred_url":"https://api.github.com/users/digitalnatives/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/digitalnatives/subscriptions","organizations_url":"https://api.github.com/users/digitalnatives/orgs","repos_url":"https://api.github.com/users/digitalnatives/repos","events_url":"https://api.github.com/users/digitalnatives/events{/privacy}","received_events_url":"https://api.github.com/users/digitalnatives/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/digitalnatives/course_planner","description":"An application to manage educational courses","fork":false,"url":"https://api.github.com/repos/digitalnatives/course_planner","forks_url":"https://api.github.com/repos/digitalnatives/course_planner/forks","keys_url":"https://api.github.com/repos/digitalnatives/course_planner/keys{/key_id}","collaborators_url":"https://api.github.com/repos/digitalnatives/course_planner/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/digitalnatives/course_planner/teams","hooks_url":"https://api.github.com/repos/digitalnatives/course_planner/hooks","issue_events_url":"https://api.github.com/repos/digitalnatives/course_planner/issues/events{/number}","events_url":"https://api.github.com/repos/digitalnatives/course_planner/events","assignees_url":"https://api.github.com/repos/digitalnatives/course_planner/assignees{/user}","branches_url":"https://api.github.com/repos/digitalnatives/course_planner/branches{/branch}","tags_url":"https://api.github.com/repos/digitalnatives/course_planner/tags","blobs_url":"https://api.github.com/repos/digitalnatives/course_planner/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/digitalnatives/course_planner/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/digitalnatives/course_planner/git/refs{/sha}","trees_url":"https://api.github.com/repos/digitalnatives/course_planner/git/trees{/sha}","statuses_url":"https://api.github.com/repos/digitalnatives/course_planner/statuses/{sha}","languages_url":"https://api.github.com/repos/digitalnatives/course_planner/languages","stargazers_url":"https://api.github.com/repos/digitalnatives/course_planner/stargazers","contributors_url":"https://api.github.com/repos/digitalnatives/course_planner/contributors","subscribers_url":"https://api.github.com/repos/digitalnatives/course_planner/subscribers","subscription_url":"https://api.github.com/repos/digitalnatives/course_planner/subscription","commits_url":"https://api.github.com/repos/digitalnatives/course_planner/commits{/sha}","git_commits_url":"https://api.github.com/repos/digitalnatives/course_planner/git/commits{/sha}","comments_url":"https://api.github.com/repos/digitalnatives/course_planner/comments{/number}","issue_comment_url":"https://api.github.com/repos/digitalnatives/course_planner/issues/comments{/number}","contents_url":"https://api.github.com/repos/digitalnatives/course_planner/contents/{+path}","compare_url":"https://api.github.com/repos/digitalnatives/course_planner/compare/{base}...{head}","merges_url":"https://api.github.com/repos/digitalnatives/course_planner/merges","archive_url":"https://api.github.com/repos/digitalnatives/course_planner/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/digitalnatives/course_planner/downloads","issues_url":"https://api.github.com/repos/digitalnatives/course_planner/issues{/number}","pulls_url":"https://api.github.com/repos/digitalnatives/course_planner/pulls{/number}","milestones_url":"https://api.github.com/repos/digitalnatives/course_planner/milestones{/number}","notifications_url":"https://api.github.com/repos/digitalnatives/course_planner/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/digitalnatives/course_planner/labels{/name}","releases_url":"https://api.github.com/repos/digitalnatives/course_planner/releases{/id}","deployments_url":"https://api.github.com/repos/digitalnatives/course_planner/deployments","created_at":"2017-04-06T13:56:59Z","updated_at":"2017-04-29T18:50:16Z","pushed_at":"2017-05-16T08:15:59Z","git_url":"git://github.com/digitalnatives/course_planner.git","ssh_url":"git@github.com:digitalnatives/course_planner.git","clone_url":"https://github.com/digitalnatives/course_planner.git","svn_url":"https://github.com/digitalnatives/course_planner","homepage":"","size":329,"stargazers_count":5,"watchers_count":5,"language":"Elixir","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":4,"forks":0,"open_issues":4,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/digitalnatives/course_planner/pulls/48"},"html":{"href":"https://github.com/digitalnatives/course_planner/pull/48"},"issue":{"href":"https://api.github.com/repos/digitalnatives/course_planner/issues/48"},"comments":{"href":"https://api.github.com/repos/digitalnatives/course_planner/issues/48/comments"},"review_comments":{"href":"https://api.github.com/repos/digitalnatives/course_planner/pulls/48/comments"},"review_comment":{"href":"https://api.github.com/repos/digitalnatives/course_planner/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/digitalnatives/course_planner/pulls/48/commits"},"statuses":{"href":"https://api.github.com/repos/digitalnatives/course_planner/statuses/1bb2dcb74ce4855dda3d9e35bded4f4e88d18f04"}}}}
{"actor":{"display_login":"ggpasqualino"}}