{"action":"created","comment":{"url":"https://api.github.com/repos/guardian/grid/pulls/comments/191469245","pull_request_review_id":124046429,"id":191469245,"diff_hunk":"@@ -162,6 +162,8 @@ query.controller('SearchQueryCtrl',\n     mediaApi.getSession().then(session => {\n         ctrl.user = session.user;\n         ctrl.filter.uploadedByMe = ctrl.uploadedBy === ctrl.user.email;\n+        ctrl.filter.nonFree = session.user.permissions.showPaid ?\n+          session.user.permissions.showPaid : undefined;","path":"kahuna/public/js/search/query.js","position":5,"original_position":5,"commit_id":"8def542e58698e7087d0c6e6b1be57e7ff4125ee","original_commit_id":"8def542e58698e7087d0c6e6b1be57e7ff4125ee","user":{"login":"akash1810","id":836140,"avatar_url":"https://avatars3.githubusercontent.com/u/836140?v=4","gravatar_id":"","url":"https://api.github.com/users/akash1810","html_url":"https://github.com/akash1810","followers_url":"https://api.github.com/users/akash1810/followers","following_url":"https://api.github.com/users/akash1810/following{/other_user}","gists_url":"https://api.github.com/users/akash1810/gists{/gist_id}","starred_url":"https://api.github.com/users/akash1810/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akash1810/subscriptions","organizations_url":"https://api.github.com/users/akash1810/orgs","repos_url":"https://api.github.com/users/akash1810/repos","events_url":"https://api.github.com/users/akash1810/events{/privacy}","received_events_url":"https://api.github.com/users/akash1810/received_events","type":"User","site_admin":false},"body":"could this just be `!!session.user.permissions.showPaid`?","created_at":"2018-05-29T15:27:04Z","updated_at":"2018-05-29T15:27:15Z","html_url":"https://github.com/guardian/grid/pull/2156#discussion_r191469245","pull_request_url":"https://api.github.com/repos/guardian/grid/pulls/2156","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/guardian/grid/pulls/comments/191469245"},"html":{"href":"https://github.com/guardian/grid/pull/2156#discussion_r191469245"},"pull_request":{"href":"https://api.github.com/repos/guardian/grid/pulls/2156"}}},"pull_request":{"url":"https://api.github.com/repos/guardian/grid/pulls/2156","id":190547613,"html_url":"https://github.com/guardian/grid/pull/2156","diff_url":"https://github.com/guardian/grid/pull/2156.diff","patch_url":"https://github.com/guardian/grid/pull/2156.patch","issue_url":"https://api.github.com/repos/guardian/grid/issues/2156","number":2156,"state":"open","locked":false,"title":"Allows editors to see paid for images by default","user":{"login":"shaundillon","id":2104095,"avatar_url":"https://avatars2.githubusercontent.com/u/2104095?v=4","gravatar_id":"","url":"https://api.github.com/users/shaundillon","html_url":"https://github.com/shaundillon","followers_url":"https://api.github.com/users/shaundillon/followers","following_url":"https://api.github.com/users/shaundillon/following{/other_user}","gists_url":"https://api.github.com/users/shaundillon/gists{/gist_id}","starred_url":"https://api.github.com/users/shaundillon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shaundillon/subscriptions","organizations_url":"https://api.github.com/users/shaundillon/orgs","repos_url":"https://api.github.com/users/shaundillon/repos","events_url":"https://api.github.com/users/shaundillon/events{/privacy}","received_events_url":"https://api.github.com/users/shaundillon/received_events","type":"User","site_admin":false},"body":"https://trello.com/c/TkHOfzRs/49-allow-picture-editors-to-see-paid-for-and-free-images-by-default\r\n\r\nWhat it says up there ^ Blocked by https://github.com/guardian/permissions/pull/95","created_at":"2018-05-25T10:34:41Z","updated_at":"2018-05-29T15:27:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a03a10cccb7d2041f35d54fb3e22d8184cacc57b","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/guardian/grid/pulls/2156/commits","review_comments_url":"https://api.github.com/repos/guardian/grid/pulls/2156/comments","review_comment_url":"https://api.github.com/repos/guardian/grid/pulls/comments{/number}","comments_url":"https://api.github.com/repos/guardian/grid/issues/2156/comments","statuses_url":"https://api.github.com/repos/guardian/grid/statuses/8def542e58698e7087d0c6e6b1be57e7ff4125ee","head":{"label":"guardian:sd-editor-view","ref":"sd-editor-view","sha":"8def542e58698e7087d0c6e6b1be57e7ff4125ee","user":{"login":"guardian","id":164318,"avatar_url":"https://avatars0.githubusercontent.com/u/164318?v=4","gravatar_id":"","url":"https://api.github.com/users/guardian","html_url":"https://github.com/guardian","followers_url":"https://api.github.com/users/guardian/followers","following_url":"https://api.github.com/users/guardian/following{/other_user}","gists_url":"https://api.github.com/users/guardian/gists{/gist_id}","starred_url":"https://api.github.com/users/guardian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guardian/subscriptions","organizations_url":"https://api.github.com/users/guardian/orgs","repos_url":"https://api.github.com/users/guardian/repos","events_url":"https://api.github.com/users/guardian/events{/privacy}","received_events_url":"https://api.github.com/users/guardian/received_events","type":"Organization","site_admin":false},"repo":{"id":12298112,"name":"grid","full_name":"guardian/grid","owner":{"login":"guardian","id":164318,"avatar_url":"https://avatars0.githubusercontent.com/u/164318?v=4","gravatar_id":"","url":"https://api.github.com/users/guardian","html_url":"https://github.com/guardian","followers_url":"https://api.github.com/users/guardian/followers","following_url":"https://api.github.com/users/guardian/following{/other_user}","gists_url":"https://api.github.com/users/guardian/gists{/gist_id}","starred_url":"https://api.github.com/users/guardian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guardian/subscriptions","organizations_url":"https://api.github.com/users/guardian/orgs","repos_url":"https://api.github.com/users/guardian/repos","events_url":"https://api.github.com/users/guardian/events{/privacy}","received_events_url":"https://api.github.com/users/guardian/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/guardian/grid","description":"The Guardian’s new image management system","fork":false,"url":"https://api.github.com/repos/guardian/grid","forks_url":"https://api.github.com/repos/guardian/grid/forks","keys_url":"https://api.github.com/repos/guardian/grid/keys{/key_id}","collaborators_url":"https://api.github.com/repos/guardian/grid/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/guardian/grid/teams","hooks_url":"https://api.github.com/repos/guardian/grid/hooks","issue_events_url":"https://api.github.com/repos/guardian/grid/issues/events{/number}","events_url":"https://api.github.com/repos/guardian/grid/events","assignees_url":"https://api.github.com/repos/guardian/grid/assignees{/user}","branches_url":"https://api.github.com/repos/guardian/grid/branches{/branch}","tags_url":"https://api.github.com/repos/guardian/grid/tags","blobs_url":"https://api.github.com/repos/guardian/grid/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/guardian/grid/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/guardian/grid/git/refs{/sha}","trees_url":"https://api.github.com/repos/guardian/grid/git/trees{/sha}","statuses_url":"https://api.github.com/repos/guardian/grid/statuses/{sha}","languages_url":"https://api.github.com/repos/guardian/grid/languages","stargazers_url":"https://api.github.com/repos/guardian/grid/stargazers","contributors_url":"https://api.github.com/repos/guardian/grid/contributors","subscribers_url":"https://api.github.com/repos/guardian/grid/subscribers","subscription_url":"https://api.github.com/repos/guardian/grid/subscription","commits_url":"https://api.github.com/repos/guardian/grid/commits{/sha}","git_commits_url":"https://api.github.com/repos/guardian/grid/git/commits{/sha}","comments_url":"https://api.github.com/repos/guardian/grid/comments{/number}","issue_comment_url":"https://api.github.com/repos/guardian/grid/issues/comments{/number}","contents_url":"https://api.github.com/repos/guardian/grid/contents/{+path}","compare_url":"https://api.github.com/repos/guardian/grid/compare/{base}...{head}","merges_url":"https://api.github.com/repos/guardian/grid/merges","archive_url":"https://api.github.com/repos/guardian/grid/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/guardian/grid/downloads","issues_url":"https://api.github.com/repos/guardian/grid/issues{/number}","pulls_url":"https://api.github.com/repos/guardian/grid/pulls{/number}","milestones_url":"https://api.github.com/repos/guardian/grid/milestones{/number}","notifications_url":"https://api.github.com/repos/guardian/grid/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/guardian/grid/labels{/name}","releases_url":"https://api.github.com/repos/guardian/grid/releases{/id}","deployments_url":"https://api.github.com/repos/guardian/grid/deployments","created_at":"2013-08-22T13:49:31Z","updated_at":"2018-05-29T11:27:56Z","pushed_at":"2018-05-29T12:07:10Z","git_url":"git://github.com/guardian/grid.git","ssh_url":"git@github.com:guardian/grid.git","clone_url":"https://github.com/guardian/grid.git","svn_url":"https://github.com/guardian/grid","homepage":"","size":11329,"stargazers_count":1262,"watchers_count":1262,"language":"Scala","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":91,"mirror_url":null,"archived":false,"open_issues_count":64,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":91,"open_issues":64,"watchers":1262,"default_branch":"master"}},"base":{"label":"guardian:master","ref":"master","sha":"39c113cfb5010d03dc7dd3bb291330538e6fd502","user":{"login":"guardian","id":164318,"avatar_url":"https://avatars0.githubusercontent.com/u/164318?v=4","gravatar_id":"","url":"https://api.github.com/users/guardian","html_url":"https://github.com/guardian","followers_url":"https://api.github.com/users/guardian/followers","following_url":"https://api.github.com/users/guardian/following{/other_user}","gists_url":"https://api.github.com/users/guardian/gists{/gist_id}","starred_url":"https://api.github.com/users/guardian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guardian/subscriptions","organizations_url":"https://api.github.com/users/guardian/orgs","repos_url":"https://api.github.com/users/guardian/repos","events_url":"https://api.github.com/users/guardian/events{/privacy}","received_events_url":"https://api.github.com/users/guardian/received_events","type":"Organization","site_admin":false},"repo":{"id":12298112,"name":"grid","full_name":"guardian/grid","owner":{"login":"guardian","id":164318,"avatar_url":"https://avatars0.githubusercontent.com/u/164318?v=4","gravatar_id":"","url":"https://api.github.com/users/guardian","html_url":"https://github.com/guardian","followers_url":"https://api.github.com/users/guardian/followers","following_url":"https://api.github.com/users/guardian/following{/other_user}","gists_url":"https://api.github.com/users/guardian/gists{/gist_id}","starred_url":"https://api.github.com/users/guardian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guardian/subscriptions","organizations_url":"https://api.github.com/users/guardian/orgs","repos_url":"https://api.github.com/users/guardian/repos","events_url":"https://api.github.com/users/guardian/events{/privacy}","received_events_url":"https://api.github.com/users/guardian/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/guardian/grid","description":"The Guardian’s new image management system","fork":false,"url":"https://api.github.com/repos/guardian/grid","forks_url":"https://api.github.com/repos/guardian/grid/forks","keys_url":"https://api.github.com/repos/guardian/grid/keys{/key_id}","collaborators_url":"https://api.github.com/repos/guardian/grid/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/guardian/grid/teams","hooks_url":"https://api.github.com/repos/guardian/grid/hooks","issue_events_url":"https://api.github.com/repos/guardian/grid/issues/events{/number}","events_url":"https://api.github.com/repos/guardian/grid/events","assignees_url":"https://api.github.com/repos/guardian/grid/assignees{/user}","branches_url":"https://api.github.com/repos/guardian/grid/branches{/branch}","tags_url":"https://api.github.com/repos/guardian/grid/tags","blobs_url":"https://api.github.com/repos/guardian/grid/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/guardian/grid/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/guardian/grid/git/refs{/sha}","trees_url":"https://api.github.com/repos/guardian/grid/git/trees{/sha}","statuses_url":"https://api.github.com/repos/guardian/grid/statuses/{sha}","languages_url":"https://api.github.com/repos/guardian/grid/languages","stargazers_url":"https://api.github.com/repos/guardian/grid/stargazers","contributors_url":"https://api.github.com/repos/guardian/grid/contributors","subscribers_url":"https://api.github.com/repos/guardian/grid/subscribers","subscription_url":"https://api.github.com/repos/guardian/grid/subscription","commits_url":"https://api.github.com/repos/guardian/grid/commits{/sha}","git_commits_url":"https://api.github.com/repos/guardian/grid/git/commits{/sha}","comments_url":"https://api.github.com/repos/guardian/grid/comments{/number}","issue_comment_url":"https://api.github.com/repos/guardian/grid/issues/comments{/number}","contents_url":"https://api.github.com/repos/guardian/grid/contents/{+path}","compare_url":"https://api.github.com/repos/guardian/grid/compare/{base}...{head}","merges_url":"https://api.github.com/repos/guardian/grid/merges","archive_url":"https://api.github.com/repos/guardian/grid/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/guardian/grid/downloads","issues_url":"https://api.github.com/repos/guardian/grid/issues{/number}","pulls_url":"https://api.github.com/repos/guardian/grid/pulls{/number}","milestones_url":"https://api.github.com/repos/guardian/grid/milestones{/number}","notifications_url":"https://api.github.com/repos/guardian/grid/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/guardian/grid/labels{/name}","releases_url":"https://api.github.com/repos/guardian/grid/releases{/id}","deployments_url":"https://api.github.com/repos/guardian/grid/deployments","created_at":"2013-08-22T13:49:31Z","updated_at":"2018-05-29T11:27:56Z","pushed_at":"2018-05-29T12:07:10Z","git_url":"git://github.com/guardian/grid.git","ssh_url":"git@github.com:guardian/grid.git","clone_url":"https://github.com/guardian/grid.git","svn_url":"https://github.com/guardian/grid","homepage":"","size":11329,"stargazers_count":1262,"watchers_count":1262,"language":"Scala","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":91,"mirror_url":null,"archived":false,"open_issues_count":64,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":91,"open_issues":64,"watchers":1262,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/guardian/grid/pulls/2156"},"html":{"href":"https://github.com/guardian/grid/pull/2156"},"issue":{"href":"https://api.github.com/repos/guardian/grid/issues/2156"},"comments":{"href":"https://api.github.com/repos/guardian/grid/issues/2156/comments"},"review_comments":{"href":"https://api.github.com/repos/guardian/grid/pulls/2156/comments"},"review_comment":{"href":"https://api.github.com/repos/guardian/grid/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/guardian/grid/pulls/2156/commits"},"statuses":{"href":"https://api.github.com/repos/guardian/grid/statuses/8def542e58698e7087d0c6e6b1be57e7ff4125ee"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"akash1810"}}