{"action":"created","comment":{"url":"https://api.github.com/repos/loomio/loomio/pulls/comments/29721505","id":29721505,"diff_hunk":"@@ -4,7 +4,7 @@ class DiscussionsController < GroupBaseController\n   before_filter :we_dont_serve_images_here_google_bot\n   before_filter :authenticate_user!, :except => [:show, :index]\n   before_filter :load_resource_by_key, except: [:new, :create, :index, :update_version]\n-  authorize_resource :except => [:new, :create, :index, :add_comment]\n+  authorize_resource :except => [:new, :create, :index, :add_comment, :print]","path":"app/controllers/discussions_controller.rb","position":5,"original_position":5,"commit_id":"1f4ed97d518a255ea0007edecb97a44a8bcab67e","original_commit_id":"1f4ed97d518a255ea0007edecb97a44a8bcab67e","user":{"login":"rdbartlett","id":970124,"avatar_url":"https://avatars.githubusercontent.com/u/970124?v=3","gravatar_id":"","url":"https://api.github.com/users/rdbartlett","html_url":"https://github.com/rdbartlett","followers_url":"https://api.github.com/users/rdbartlett/followers","following_url":"https://api.github.com/users/rdbartlett/following{/other_user}","gists_url":"https://api.github.com/users/rdbartlett/gists{/gist_id}","starred_url":"https://api.github.com/users/rdbartlett/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rdbartlett/subscriptions","organizations_url":"https://api.github.com/users/rdbartlett/orgs","repos_url":"https://api.github.com/users/rdbartlett/repos","events_url":"https://api.github.com/users/rdbartlett/events{/privacy}","received_events_url":"https://api.github.com/users/rdbartlett/received_events","type":"User","site_admin":false},"body":"Maybe something for the next iteration: would be cool if the pie chart made\nsense in grayscale.\n\nOn Wed, May 6, 2015 at 10:45 AM Robert Guthrie <notifications@github.com>\nwrote:\n\n> In app/controllers/discussions_controller.rb\n> <https://github.com/loomio/loomio/pull/2140#discussion_r29721347>:\n>\n> > @@ -4,7 +4,7 @@ class DiscussionsController < GroupBaseController\n> >    before_filter :we_dont_serve_images_here_google_bot\n> >    before_filter :authenticate_user!, :except => [:show, :index]\n> >    before_filter :load_resource_by_key, except: [:new, :create, :index, :update_version]\n> > -  authorize_resource :except => [:new, :create, :index, :add_comment]\n> > +  authorize_resource :except => [:new, :create, :index, :add_comment, :print]\n>\n> Woha!\n> Big red alert!\n>\n> You must authorise the resource the same way that the show action does.\n> Don't merge this until this is fixed. Cheers!\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/loomio/loomio/pull/2140/files#r29721347>.\n>\n","created_at":"2015-05-05T22:48:51Z","updated_at":"2015-05-05T22:48:51Z","html_url":"https://github.com/loomio/loomio/pull/2140#discussion_r29721505","pull_request_url":"https://api.github.com/repos/loomio/loomio/pulls/2140","_links":{"self":{"href":"https://api.github.com/repos/loomio/loomio/pulls/comments/29721505"},"html":{"href":"https://github.com/loomio/loomio/pull/2140#discussion_r29721505"},"pull_request":{"href":"https://api.github.com/repos/loomio/loomio/pulls/2140"}}},"pull_request":{"url":"https://api.github.com/repos/loomio/loomio/pulls/2140","id":34708307,"html_url":"https://github.com/loomio/loomio/pull/2140","diff_url":"https://github.com/loomio/loomio/pull/2140.diff","patch_url":"https://github.com/loomio/loomio/pull/2140.patch","issue_url":"https://api.github.com/repos/loomio/loomio/issues/2140","number":2140,"state":"open","locked":false,"title":"Print discussion","user":{"login":"HSalmon","id":2882097,"avatar_url":"https://avatars.githubusercontent.com/u/2882097?v=3","gravatar_id":"","url":"https://api.github.com/users/HSalmon","html_url":"https://github.com/HSalmon","followers_url":"https://api.github.com/users/HSalmon/followers","following_url":"https://api.github.com/users/HSalmon/following{/other_user}","gists_url":"https://api.github.com/users/HSalmon/gists{/gist_id}","starred_url":"https://api.github.com/users/HSalmon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HSalmon/subscriptions","organizations_url":"https://api.github.com/users/HSalmon/orgs","repos_url":"https://api.github.com/users/HSalmon/repos","events_url":"https://api.github.com/users/HSalmon/events{/privacy}","received_events_url":"https://api.github.com/users/HSalmon/received_events","type":"User","site_admin":false},"body":"![screen shot 2015-05-05 at 9 35 06 pm](https://cloud.githubusercontent.com/assets/2882097/7470158/9bb3177e-f36e-11e4-837e-72e7daafb392.png)\r\n\r\n![screen shot 2015-05-05 at 9 36 04 pm](https://cloud.githubusercontent.com/assets/2882097/7470186/cf893380-f36e-11e4-95c4-781efccc7f12.png)\r\n\r\n","created_at":"2015-05-05T09:35:20Z","updated_at":"2015-05-05T22:48:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5b80800d84ee08fe4ebecb6a8fa440fc532e943e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/loomio/loomio/pulls/2140/commits","review_comments_url":"https://api.github.com/repos/loomio/loomio/pulls/2140/comments","review_comment_url":"https://api.github.com/repos/loomio/loomio/pulls/comments{/number}","comments_url":"https://api.github.com/repos/loomio/loomio/issues/2140/comments","statuses_url":"https://api.github.com/repos/loomio/loomio/statuses/1f4ed97d518a255ea0007edecb97a44a8bcab67e","head":{"label":"loomio:print-discussion","ref":"print-discussion","sha":"1f4ed97d518a255ea0007edecb97a44a8bcab67e","user":{"login":"loomio","id":1896739,"avatar_url":"https://avatars.githubusercontent.com/u/1896739?v=3","gravatar_id":"","url":"https://api.github.com/users/loomio","html_url":"https://github.com/loomio","followers_url":"https://api.github.com/users/loomio/followers","following_url":"https://api.github.com/users/loomio/following{/other_user}","gists_url":"https://api.github.com/users/loomio/gists{/gist_id}","starred_url":"https://api.github.com/users/loomio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/loomio/subscriptions","organizations_url":"https://api.github.com/users/loomio/orgs","repos_url":"https://api.github.com/users/loomio/repos","events_url":"https://api.github.com/users/loomio/events{/privacy}","received_events_url":"https://api.github.com/users/loomio/received_events","type":"Organization","site_admin":false},"repo":{"id":2731301,"name":"loomio","full_name":"loomio/loomio","owner":{"login":"loomio","id":1896739,"avatar_url":"https://avatars.githubusercontent.com/u/1896739?v=3","gravatar_id":"","url":"https://api.github.com/users/loomio","html_url":"https://github.com/loomio","followers_url":"https://api.github.com/users/loomio/followers","following_url":"https://api.github.com/users/loomio/following{/other_user}","gists_url":"https://api.github.com/users/loomio/gists{/gist_id}","starred_url":"https://api.github.com/users/loomio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/loomio/subscriptions","organizations_url":"https://api.github.com/users/loomio/orgs","repos_url":"https://api.github.com/users/loomio/repos","events_url":"https://api.github.com/users/loomio/events{/privacy}","received_events_url":"https://api.github.com/users/loomio/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/loomio/loomio","description":"Loomio is an open-source web application that helps groups make better decisions together.","fork":false,"url":"https://api.github.com/repos/loomio/loomio","forks_url":"https://api.github.com/repos/loomio/loomio/forks","keys_url":"https://api.github.com/repos/loomio/loomio/keys{/key_id}","collaborators_url":"https://api.github.com/repos/loomio/loomio/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/loomio/loomio/teams","hooks_url":"https://api.github.com/repos/loomio/loomio/hooks","issue_events_url":"https://api.github.com/repos/loomio/loomio/issues/events{/number}","events_url":"https://api.github.com/repos/loomio/loomio/events","assignees_url":"https://api.github.com/repos/loomio/loomio/assignees{/user}","branches_url":"https://api.github.com/repos/loomio/loomio/branches{/branch}","tags_url":"https://api.github.com/repos/loomio/loomio/tags","blobs_url":"https://api.github.com/repos/loomio/loomio/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/loomio/loomio/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/loomio/loomio/git/refs{/sha}","trees_url":"https://api.github.com/repos/loomio/loomio/git/trees{/sha}","statuses_url":"https://api.github.com/repos/loomio/loomio/statuses/{sha}","languages_url":"https://api.github.com/repos/loomio/loomio/languages","stargazers_url":"https://api.github.com/repos/loomio/loomio/stargazers","contributors_url":"https://api.github.com/repos/loomio/loomio/contributors","subscribers_url":"https://api.github.com/repos/loomio/loomio/subscribers","subscription_url":"https://api.github.com/repos/loomio/loomio/subscription","commits_url":"https://api.github.com/repos/loomio/loomio/commits{/sha}","git_commits_url":"https://api.github.com/repos/loomio/loomio/git/commits{/sha}","comments_url":"https://api.github.com/repos/loomio/loomio/comments{/number}","issue_comment_url":"https://api.github.com/repos/loomio/loomio/issues/comments{/number}","contents_url":"https://api.github.com/repos/loomio/loomio/contents/{+path}","compare_url":"https://api.github.com/repos/loomio/loomio/compare/{base}...{head}","merges_url":"https://api.github.com/repos/loomio/loomio/merges","archive_url":"https://api.github.com/repos/loomio/loomio/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/loomio/loomio/downloads","issues_url":"https://api.github.com/repos/loomio/loomio/issues{/number}","pulls_url":"https://api.github.com/repos/loomio/loomio/pulls{/number}","milestones_url":"https://api.github.com/repos/loomio/loomio/milestones{/number}","notifications_url":"https://api.github.com/repos/loomio/loomio/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/loomio/loomio/labels{/name}","releases_url":"https://api.github.com/repos/loomio/loomio/releases{/id}","created_at":"2011-11-08T03:27:12Z","updated_at":"2015-05-05T02:53:15Z","pushed_at":"2015-05-05T19:43:17Z","git_url":"git://github.com/loomio/loomio.git","ssh_url":"git@github.com:loomio/loomio.git","clone_url":"https://github.com/loomio/loomio.git","svn_url":"https://github.com/loomio/loomio","homepage":"www.loomio.org","size":163158,"stargazers_count":887,"watchers_count":887,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":281,"mirror_url":null,"open_issues_count":72,"forks":281,"open_issues":72,"watchers":887,"default_branch":"master"}},"base":{"label":"loomio:master","ref":"master","sha":"655bfc5bd810597f9503b03a55a8795f2cd6ce27","user":{"login":"loomio","id":1896739,"avatar_url":"https://avatars.githubusercontent.com/u/1896739?v=3","gravatar_id":"","url":"https://api.github.com/users/loomio","html_url":"https://github.com/loomio","followers_url":"https://api.github.com/users/loomio/followers","following_url":"https://api.github.com/users/loomio/following{/other_user}","gists_url":"https://api.github.com/users/loomio/gists{/gist_id}","starred_url":"https://api.github.com/users/loomio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/loomio/subscriptions","organizations_url":"https://api.github.com/users/loomio/orgs","repos_url":"https://api.github.com/users/loomio/repos","events_url":"https://api.github.com/users/loomio/events{/privacy}","received_events_url":"https://api.github.com/users/loomio/received_events","type":"Organization","site_admin":false},"repo":{"id":2731301,"name":"loomio","full_name":"loomio/loomio","owner":{"login":"loomio","id":1896739,"avatar_url":"https://avatars.githubusercontent.com/u/1896739?v=3","gravatar_id":"","url":"https://api.github.com/users/loomio","html_url":"https://github.com/loomio","followers_url":"https://api.github.com/users/loomio/followers","following_url":"https://api.github.com/users/loomio/following{/other_user}","gists_url":"https://api.github.com/users/loomio/gists{/gist_id}","starred_url":"https://api.github.com/users/loomio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/loomio/subscriptions","organizations_url":"https://api.github.com/users/loomio/orgs","repos_url":"https://api.github.com/users/loomio/repos","events_url":"https://api.github.com/users/loomio/events{/privacy}","received_events_url":"https://api.github.com/users/loomio/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/loomio/loomio","description":"Loomio is an open-source web application that helps groups make better decisions together.","fork":false,"url":"https://api.github.com/repos/loomio/loomio","forks_url":"https://api.github.com/repos/loomio/loomio/forks","keys_url":"https://api.github.com/repos/loomio/loomio/keys{/key_id}","collaborators_url":"https://api.github.com/repos/loomio/loomio/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/loomio/loomio/teams","hooks_url":"https://api.github.com/repos/loomio/loomio/hooks","issue_events_url":"https://api.github.com/repos/loomio/loomio/issues/events{/number}","events_url":"https://api.github.com/repos/loomio/loomio/events","assignees_url":"https://api.github.com/repos/loomio/loomio/assignees{/user}","branches_url":"https://api.github.com/repos/loomio/loomio/branches{/branch}","tags_url":"https://api.github.com/repos/loomio/loomio/tags","blobs_url":"https://api.github.com/repos/loomio/loomio/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/loomio/loomio/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/loomio/loomio/git/refs{/sha}","trees_url":"https://api.github.com/repos/loomio/loomio/git/trees{/sha}","statuses_url":"https://api.github.com/repos/loomio/loomio/statuses/{sha}","languages_url":"https://api.github.com/repos/loomio/loomio/languages","stargazers_url":"https://api.github.com/repos/loomio/loomio/stargazers","contributors_url":"https://api.github.com/repos/loomio/loomio/contributors","subscribers_url":"https://api.github.com/repos/loomio/loomio/subscribers","subscription_url":"https://api.github.com/repos/loomio/loomio/subscription","commits_url":"https://api.github.com/repos/loomio/loomio/commits{/sha}","git_commits_url":"https://api.github.com/repos/loomio/loomio/git/commits{/sha}","comments_url":"https://api.github.com/repos/loomio/loomio/comments{/number}","issue_comment_url":"https://api.github.com/repos/loomio/loomio/issues/comments{/number}","contents_url":"https://api.github.com/repos/loomio/loomio/contents/{+path}","compare_url":"https://api.github.com/repos/loomio/loomio/compare/{base}...{head}","merges_url":"https://api.github.com/repos/loomio/loomio/merges","archive_url":"https://api.github.com/repos/loomio/loomio/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/loomio/loomio/downloads","issues_url":"https://api.github.com/repos/loomio/loomio/issues{/number}","pulls_url":"https://api.github.com/repos/loomio/loomio/pulls{/number}","milestones_url":"https://api.github.com/repos/loomio/loomio/milestones{/number}","notifications_url":"https://api.github.com/repos/loomio/loomio/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/loomio/loomio/labels{/name}","releases_url":"https://api.github.com/repos/loomio/loomio/releases{/id}","created_at":"2011-11-08T03:27:12Z","updated_at":"2015-05-05T02:53:15Z","pushed_at":"2015-05-05T19:43:17Z","git_url":"git://github.com/loomio/loomio.git","ssh_url":"git@github.com:loomio/loomio.git","clone_url":"https://github.com/loomio/loomio.git","svn_url":"https://github.com/loomio/loomio","homepage":"www.loomio.org","size":163158,"stargazers_count":887,"watchers_count":887,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":281,"mirror_url":null,"open_issues_count":72,"forks":281,"open_issues":72,"watchers":887,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/loomio/loomio/pulls/2140"},"html":{"href":"https://github.com/loomio/loomio/pull/2140"},"issue":{"href":"https://api.github.com/repos/loomio/loomio/issues/2140"},"comments":{"href":"https://api.github.com/repos/loomio/loomio/issues/2140/comments"},"review_comments":{"href":"https://api.github.com/repos/loomio/loomio/pulls/2140/comments"},"review_comment":{"href":"https://api.github.com/repos/loomio/loomio/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/loomio/loomio/pulls/2140/commits"},"statuses":{"href":"https://api.github.com/repos/loomio/loomio/statuses/1f4ed97d518a255ea0007edecb97a44a8bcab67e"}}}}