{"action":"created","comment":{"url":"https://api.github.com/repos/jbrr/the_pivot/pulls/comments/42411582","id":42411582,"diff_hunk":"@@ -26,11 +26,11 @@ def allow?(controller, action)\n   end\n \n   def platform_admin_permissions\n-    true\n+    return true unless controller == \"admin/dashboards\" && action.in?(%w(new create))","path":"app/services/permission.rb","position":5,"original_position":5,"commit_id":"027cc8694b6899f368efd0427f748e8217bcf1b6","original_commit_id":"027cc8694b6899f368efd0427f748e8217bcf1b6","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Line is too long. [85/80]","created_at":"2015-10-19T18:58:09Z","updated_at":"2015-10-19T18:58:09Z","html_url":"https://github.com/jbrr/the_pivot/pull/45#discussion_r42411582","pull_request_url":"https://api.github.com/repos/jbrr/the_pivot/pulls/45","_links":{"self":{"href":"https://api.github.com/repos/jbrr/the_pivot/pulls/comments/42411582"},"html":{"href":"https://github.com/jbrr/the_pivot/pull/45#discussion_r42411582"},"pull_request":{"href":"https://api.github.com/repos/jbrr/the_pivot/pulls/45"}}},"pull_request":{"url":"https://api.github.com/repos/jbrr/the_pivot/pulls/45","id":48111385,"html_url":"https://github.com/jbrr/the_pivot/pull/45","diff_url":"https://github.com/jbrr/the_pivot/pull/45.diff","patch_url":"https://github.com/jbrr/the_pivot/pull/45.patch","issue_url":"https://api.github.com/repos/jbrr/the_pivot/issues/45","number":45,"state":"open","locked":false,"title":"Admin dash auth","user":{"login":"jbrr","id":3893765,"avatar_url":"https://avatars.githubusercontent.com/u/3893765?v=3","gravatar_id":"","url":"https://api.github.com/users/jbrr","html_url":"https://github.com/jbrr","followers_url":"https://api.github.com/users/jbrr/followers","following_url":"https://api.github.com/users/jbrr/following{/other_user}","gists_url":"https://api.github.com/users/jbrr/gists{/gist_id}","starred_url":"https://api.github.com/users/jbrr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbrr/subscriptions","organizations_url":"https://api.github.com/users/jbrr/orgs","repos_url":"https://api.github.com/users/jbrr/repos","events_url":"https://api.github.com/users/jbrr/events{/privacy}","received_events_url":"https://api.github.com/users/jbrr/received_events","type":"User","site_admin":false},"body":"Changed permissions for campaign managers and platform admins. Campaign managers can only add new campaign managers, and platform admins can only approve or deny requests to become campaign managers. Tests are written and passing.","created_at":"2015-10-19T18:58:06Z","updated_at":"2015-10-19T18:58:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3b29215090693ad0f6a2cbd5de8268dead151ffd","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/jbrr/the_pivot/pulls/45/commits","review_comments_url":"https://api.github.com/repos/jbrr/the_pivot/pulls/45/comments","review_comment_url":"https://api.github.com/repos/jbrr/the_pivot/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jbrr/the_pivot/issues/45/comments","statuses_url":"https://api.github.com/repos/jbrr/the_pivot/statuses/027cc8694b6899f368efd0427f748e8217bcf1b6","head":{"label":"jbrr:admin-dash-auth","ref":"admin-dash-auth","sha":"027cc8694b6899f368efd0427f748e8217bcf1b6","user":{"login":"jbrr","id":3893765,"avatar_url":"https://avatars.githubusercontent.com/u/3893765?v=3","gravatar_id":"","url":"https://api.github.com/users/jbrr","html_url":"https://github.com/jbrr","followers_url":"https://api.github.com/users/jbrr/followers","following_url":"https://api.github.com/users/jbrr/following{/other_user}","gists_url":"https://api.github.com/users/jbrr/gists{/gist_id}","starred_url":"https://api.github.com/users/jbrr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbrr/subscriptions","organizations_url":"https://api.github.com/users/jbrr/orgs","repos_url":"https://api.github.com/users/jbrr/repos","events_url":"https://api.github.com/users/jbrr/events{/privacy}","received_events_url":"https://api.github.com/users/jbrr/received_events","type":"User","site_admin":false},"repo":{"id":44121382,"name":"the_pivot","full_name":"jbrr/the_pivot","owner":{"login":"jbrr","id":3893765,"avatar_url":"https://avatars.githubusercontent.com/u/3893765?v=3","gravatar_id":"","url":"https://api.github.com/users/jbrr","html_url":"https://github.com/jbrr","followers_url":"https://api.github.com/users/jbrr/followers","following_url":"https://api.github.com/users/jbrr/following{/other_user}","gists_url":"https://api.github.com/users/jbrr/gists{/gist_id}","starred_url":"https://api.github.com/users/jbrr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbrr/subscriptions","organizations_url":"https://api.github.com/users/jbrr/orgs","repos_url":"https://api.github.com/users/jbrr/repos","events_url":"https://api.github.com/users/jbrr/events{/privacy}","received_events_url":"https://api.github.com/users/jbrr/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jbrr/the_pivot","description":"","fork":false,"url":"https://api.github.com/repos/jbrr/the_pivot","forks_url":"https://api.github.com/repos/jbrr/the_pivot/forks","keys_url":"https://api.github.com/repos/jbrr/the_pivot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jbrr/the_pivot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jbrr/the_pivot/teams","hooks_url":"https://api.github.com/repos/jbrr/the_pivot/hooks","issue_events_url":"https://api.github.com/repos/jbrr/the_pivot/issues/events{/number}","events_url":"https://api.github.com/repos/jbrr/the_pivot/events","assignees_url":"https://api.github.com/repos/jbrr/the_pivot/assignees{/user}","branches_url":"https://api.github.com/repos/jbrr/the_pivot/branches{/branch}","tags_url":"https://api.github.com/repos/jbrr/the_pivot/tags","blobs_url":"https://api.github.com/repos/jbrr/the_pivot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jbrr/the_pivot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jbrr/the_pivot/git/refs{/sha}","trees_url":"https://api.github.com/repos/jbrr/the_pivot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jbrr/the_pivot/statuses/{sha}","languages_url":"https://api.github.com/repos/jbrr/the_pivot/languages","stargazers_url":"https://api.github.com/repos/jbrr/the_pivot/stargazers","contributors_url":"https://api.github.com/repos/jbrr/the_pivot/contributors","subscribers_url":"https://api.github.com/repos/jbrr/the_pivot/subscribers","subscription_url":"https://api.github.com/repos/jbrr/the_pivot/subscription","commits_url":"https://api.github.com/repos/jbrr/the_pivot/commits{/sha}","git_commits_url":"https://api.github.com/repos/jbrr/the_pivot/git/commits{/sha}","comments_url":"https://api.github.com/repos/jbrr/the_pivot/comments{/number}","issue_comment_url":"https://api.github.com/repos/jbrr/the_pivot/issues/comments{/number}","contents_url":"https://api.github.com/repos/jbrr/the_pivot/contents/{+path}","compare_url":"https://api.github.com/repos/jbrr/the_pivot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jbrr/the_pivot/merges","archive_url":"https://api.github.com/repos/jbrr/the_pivot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jbrr/the_pivot/downloads","issues_url":"https://api.github.com/repos/jbrr/the_pivot/issues{/number}","pulls_url":"https://api.github.com/repos/jbrr/the_pivot/pulls{/number}","milestones_url":"https://api.github.com/repos/jbrr/the_pivot/milestones{/number}","notifications_url":"https://api.github.com/repos/jbrr/the_pivot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jbrr/the_pivot/labels{/name}","releases_url":"https://api.github.com/repos/jbrr/the_pivot/releases{/id}","created_at":"2015-10-12T16:59:53Z","updated_at":"2015-10-12T17:01:47Z","pushed_at":"2015-10-19T18:58:06Z","git_url":"git://github.com/jbrr/the_pivot.git","ssh_url":"git@github.com:jbrr/the_pivot.git","clone_url":"https://github.com/jbrr/the_pivot.git","svn_url":"https://github.com/jbrr/the_pivot","homepage":null,"size":3880,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":5,"forks":0,"open_issues":5,"watchers":0,"default_branch":"master"}},"base":{"label":"jbrr:master","ref":"master","sha":"3035e156a62f986cc4cedba57fe750772cf2228b","user":{"login":"jbrr","id":3893765,"avatar_url":"https://avatars.githubusercontent.com/u/3893765?v=3","gravatar_id":"","url":"https://api.github.com/users/jbrr","html_url":"https://github.com/jbrr","followers_url":"https://api.github.com/users/jbrr/followers","following_url":"https://api.github.com/users/jbrr/following{/other_user}","gists_url":"https://api.github.com/users/jbrr/gists{/gist_id}","starred_url":"https://api.github.com/users/jbrr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbrr/subscriptions","organizations_url":"https://api.github.com/users/jbrr/orgs","repos_url":"https://api.github.com/users/jbrr/repos","events_url":"https://api.github.com/users/jbrr/events{/privacy}","received_events_url":"https://api.github.com/users/jbrr/received_events","type":"User","site_admin":false},"repo":{"id":44121382,"name":"the_pivot","full_name":"jbrr/the_pivot","owner":{"login":"jbrr","id":3893765,"avatar_url":"https://avatars.githubusercontent.com/u/3893765?v=3","gravatar_id":"","url":"https://api.github.com/users/jbrr","html_url":"https://github.com/jbrr","followers_url":"https://api.github.com/users/jbrr/followers","following_url":"https://api.github.com/users/jbrr/following{/other_user}","gists_url":"https://api.github.com/users/jbrr/gists{/gist_id}","starred_url":"https://api.github.com/users/jbrr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbrr/subscriptions","organizations_url":"https://api.github.com/users/jbrr/orgs","repos_url":"https://api.github.com/users/jbrr/repos","events_url":"https://api.github.com/users/jbrr/events{/privacy}","received_events_url":"https://api.github.com/users/jbrr/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jbrr/the_pivot","description":"","fork":false,"url":"https://api.github.com/repos/jbrr/the_pivot","forks_url":"https://api.github.com/repos/jbrr/the_pivot/forks","keys_url":"https://api.github.com/repos/jbrr/the_pivot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jbrr/the_pivot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jbrr/the_pivot/teams","hooks_url":"https://api.github.com/repos/jbrr/the_pivot/hooks","issue_events_url":"https://api.github.com/repos/jbrr/the_pivot/issues/events{/number}","events_url":"https://api.github.com/repos/jbrr/the_pivot/events","assignees_url":"https://api.github.com/repos/jbrr/the_pivot/assignees{/user}","branches_url":"https://api.github.com/repos/jbrr/the_pivot/branches{/branch}","tags_url":"https://api.github.com/repos/jbrr/the_pivot/tags","blobs_url":"https://api.github.com/repos/jbrr/the_pivot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jbrr/the_pivot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jbrr/the_pivot/git/refs{/sha}","trees_url":"https://api.github.com/repos/jbrr/the_pivot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jbrr/the_pivot/statuses/{sha}","languages_url":"https://api.github.com/repos/jbrr/the_pivot/languages","stargazers_url":"https://api.github.com/repos/jbrr/the_pivot/stargazers","contributors_url":"https://api.github.com/repos/jbrr/the_pivot/contributors","subscribers_url":"https://api.github.com/repos/jbrr/the_pivot/subscribers","subscription_url":"https://api.github.com/repos/jbrr/the_pivot/subscription","commits_url":"https://api.github.com/repos/jbrr/the_pivot/commits{/sha}","git_commits_url":"https://api.github.com/repos/jbrr/the_pivot/git/commits{/sha}","comments_url":"https://api.github.com/repos/jbrr/the_pivot/comments{/number}","issue_comment_url":"https://api.github.com/repos/jbrr/the_pivot/issues/comments{/number}","contents_url":"https://api.github.com/repos/jbrr/the_pivot/contents/{+path}","compare_url":"https://api.github.com/repos/jbrr/the_pivot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jbrr/the_pivot/merges","archive_url":"https://api.github.com/repos/jbrr/the_pivot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jbrr/the_pivot/downloads","issues_url":"https://api.github.com/repos/jbrr/the_pivot/issues{/number}","pulls_url":"https://api.github.com/repos/jbrr/the_pivot/pulls{/number}","milestones_url":"https://api.github.com/repos/jbrr/the_pivot/milestones{/number}","notifications_url":"https://api.github.com/repos/jbrr/the_pivot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jbrr/the_pivot/labels{/name}","releases_url":"https://api.github.com/repos/jbrr/the_pivot/releases{/id}","created_at":"2015-10-12T16:59:53Z","updated_at":"2015-10-12T17:01:47Z","pushed_at":"2015-10-19T18:58:06Z","git_url":"git://github.com/jbrr/the_pivot.git","ssh_url":"git@github.com:jbrr/the_pivot.git","clone_url":"https://github.com/jbrr/the_pivot.git","svn_url":"https://github.com/jbrr/the_pivot","homepage":null,"size":3880,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":5,"forks":0,"open_issues":5,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jbrr/the_pivot/pulls/45"},"html":{"href":"https://github.com/jbrr/the_pivot/pull/45"},"issue":{"href":"https://api.github.com/repos/jbrr/the_pivot/issues/45"},"comments":{"href":"https://api.github.com/repos/jbrr/the_pivot/issues/45/comments"},"review_comments":{"href":"https://api.github.com/repos/jbrr/the_pivot/pulls/45/comments"},"review_comment":{"href":"https://api.github.com/repos/jbrr/the_pivot/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jbrr/the_pivot/pulls/45/commits"},"statuses":{"href":"https://api.github.com/repos/jbrr/the_pivot/statuses/027cc8694b6899f368efd0427f748e8217bcf1b6"}}}}