{"action":"created","comment":{"url":"https://api.github.com/repos/khandhas-infra/kninfra/pulls/comments/25162394","id":25162394,"diff_hunk":"@@ -50,6 +50,11 @@ def by_path(p):\n         pp, name = bits\n     return by_path_and_name(pp, name)\n \n+def is_admin(user):\n+    if user is None:\n+        return False\n+    return bool(user.cached_groups_names & set(['fotocie', 'webcie']))","path":"kn/fotos/entities.py","position":7,"original_position":7,"commit_id":"f5e0e7004b5a4718f57bbc86f64afa73df6d3a2d","original_commit_id":"f5e0e7004b5a4718f57bbc86f64afa73df6d3a2d","user":{"login":"bwesterb","id":9975,"avatar_url":"https://avatars.githubusercontent.com/u/9975?v=3","gravatar_id":"","url":"https://api.github.com/users/bwesterb","html_url":"https://github.com/bwesterb","followers_url":"https://api.github.com/users/bwesterb/followers","following_url":"https://api.github.com/users/bwesterb/following{/other_user}","gists_url":"https://api.github.com/users/bwesterb/gists{/gist_id}","starred_url":"https://api.github.com/users/bwesterb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bwesterb/subscriptions","organizations_url":"https://api.github.com/users/bwesterb/orgs","repos_url":"https://api.github.com/users/bwesterb/repos","events_url":"https://api.github.com/users/bwesterb/events{/privacy}","received_events_url":"https://api.github.com/users/bwesterb/received_events","type":"User","site_admin":false},"body":"`frozenset`.","created_at":"2015-02-23T13:21:02Z","updated_at":"2015-02-23T13:21:02Z","html_url":"https://github.com/khandhas-infra/kninfra/pull/22#discussion_r25162394","pull_request_url":"https://api.github.com/repos/khandhas-infra/kninfra/pulls/22","_links":{"self":{"href":"https://api.github.com/repos/khandhas-infra/kninfra/pulls/comments/25162394"},"html":{"href":"https://github.com/khandhas-infra/kninfra/pull/22#discussion_r25162394"},"pull_request":{"href":"https://api.github.com/repos/khandhas-infra/kninfra/pulls/22"}}},"pull_request":{"url":"https://api.github.com/repos/khandhas-infra/kninfra/pulls/22","id":29798489,"html_url":"https://github.com/khandhas-infra/kninfra/pull/22","diff_url":"https://github.com/khandhas-infra/kninfra/pull/22.diff","patch_url":"https://github.com/khandhas-infra/kninfra/pull/22.patch","issue_url":"https://api.github.com/repos/khandhas-infra/kninfra/issues/22","number":22,"state":"open","locked":false,"title":"Fotos album titles","user":{"login":"aykevl93","id":729697,"avatar_url":"https://avatars.githubusercontent.com/u/729697?v=3","gravatar_id":"","url":"https://api.github.com/users/aykevl93","html_url":"https://github.com/aykevl93","followers_url":"https://api.github.com/users/aykevl93/followers","following_url":"https://api.github.com/users/aykevl93/following{/other_user}","gists_url":"https://api.github.com/users/aykevl93/gists{/gist_id}","starred_url":"https://api.github.com/users/aykevl93/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aykevl93/subscriptions","organizations_url":"https://api.github.com/users/aykevl93/orgs","repos_url":"https://api.github.com/users/aykevl93/repos","events_url":"https://api.github.com/users/aykevl93/events{/privacy}","received_events_url":"https://api.github.com/users/aykevl93/received_events","type":"User","site_admin":false},"body":"Ik weet niet helemaal of dit de juiste manier is. @bwesterb kun je kijken of dit de juiste manier is waarop de API gebruikt wordt en permissies worden gecontroleerd? (Het werkt wel gewoon allemaal).","created_at":"2015-02-23T10:34:17Z","updated_at":"2015-02-23T13:21:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4bfb2d7a792e74ca838a2beb2f291f3d502b7522","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/khandhas-infra/kninfra/pulls/22/commits","review_comments_url":"https://api.github.com/repos/khandhas-infra/kninfra/pulls/22/comments","review_comment_url":"https://api.github.com/repos/khandhas-infra/kninfra/pulls/comments{/number}","comments_url":"https://api.github.com/repos/khandhas-infra/kninfra/issues/22/comments","statuses_url":"https://api.github.com/repos/khandhas-infra/kninfra/statuses/f5e0e7004b5a4718f57bbc86f64afa73df6d3a2d","head":{"label":"aykevl93:fotos-album-titles","ref":"fotos-album-titles","sha":"f5e0e7004b5a4718f57bbc86f64afa73df6d3a2d","user":{"login":"aykevl93","id":729697,"avatar_url":"https://avatars.githubusercontent.com/u/729697?v=3","gravatar_id":"","url":"https://api.github.com/users/aykevl93","html_url":"https://github.com/aykevl93","followers_url":"https://api.github.com/users/aykevl93/followers","following_url":"https://api.github.com/users/aykevl93/following{/other_user}","gists_url":"https://api.github.com/users/aykevl93/gists{/gist_id}","starred_url":"https://api.github.com/users/aykevl93/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aykevl93/subscriptions","organizations_url":"https://api.github.com/users/aykevl93/orgs","repos_url":"https://api.github.com/users/aykevl93/repos","events_url":"https://api.github.com/users/aykevl93/events{/privacy}","received_events_url":"https://api.github.com/users/aykevl93/received_events","type":"User","site_admin":false},"repo":{"id":7627453,"name":"kninfra","full_name":"aykevl93/kninfra","owner":{"login":"aykevl93","id":729697,"avatar_url":"https://avatars.githubusercontent.com/u/729697?v=3","gravatar_id":"","url":"https://api.github.com/users/aykevl93","html_url":"https://github.com/aykevl93","followers_url":"https://api.github.com/users/aykevl93/followers","following_url":"https://api.github.com/users/aykevl93/following{/other_user}","gists_url":"https://api.github.com/users/aykevl93/gists{/gist_id}","starred_url":"https://api.github.com/users/aykevl93/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aykevl93/subscriptions","organizations_url":"https://api.github.com/users/aykevl93/orgs","repos_url":"https://api.github.com/users/aykevl93/repos","events_url":"https://api.github.com/users/aykevl93/events{/privacy}","received_events_url":"https://api.github.com/users/aykevl93/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/aykevl93/kninfra","description":"Digital infrastructure of Karpe Noktem","fork":true,"url":"https://api.github.com/repos/aykevl93/kninfra","forks_url":"https://api.github.com/repos/aykevl93/kninfra/forks","keys_url":"https://api.github.com/repos/aykevl93/kninfra/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aykevl93/kninfra/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aykevl93/kninfra/teams","hooks_url":"https://api.github.com/repos/aykevl93/kninfra/hooks","issue_events_url":"https://api.github.com/repos/aykevl93/kninfra/issues/events{/number}","events_url":"https://api.github.com/repos/aykevl93/kninfra/events","assignees_url":"https://api.github.com/repos/aykevl93/kninfra/assignees{/user}","branches_url":"https://api.github.com/repos/aykevl93/kninfra/branches{/branch}","tags_url":"https://api.github.com/repos/aykevl93/kninfra/tags","blobs_url":"https://api.github.com/repos/aykevl93/kninfra/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aykevl93/kninfra/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aykevl93/kninfra/git/refs{/sha}","trees_url":"https://api.github.com/repos/aykevl93/kninfra/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aykevl93/kninfra/statuses/{sha}","languages_url":"https://api.github.com/repos/aykevl93/kninfra/languages","stargazers_url":"https://api.github.com/repos/aykevl93/kninfra/stargazers","contributors_url":"https://api.github.com/repos/aykevl93/kninfra/contributors","subscribers_url":"https://api.github.com/repos/aykevl93/kninfra/subscribers","subscription_url":"https://api.github.com/repos/aykevl93/kninfra/subscription","commits_url":"https://api.github.com/repos/aykevl93/kninfra/commits{/sha}","git_commits_url":"https://api.github.com/repos/aykevl93/kninfra/git/commits{/sha}","comments_url":"https://api.github.com/repos/aykevl93/kninfra/comments{/number}","issue_comment_url":"https://api.github.com/repos/aykevl93/kninfra/issues/comments{/number}","contents_url":"https://api.github.com/repos/aykevl93/kninfra/contents/{+path}","compare_url":"https://api.github.com/repos/aykevl93/kninfra/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aykevl93/kninfra/merges","archive_url":"https://api.github.com/repos/aykevl93/kninfra/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aykevl93/kninfra/downloads","issues_url":"https://api.github.com/repos/aykevl93/kninfra/issues{/number}","pulls_url":"https://api.github.com/repos/aykevl93/kninfra/pulls{/number}","milestones_url":"https://api.github.com/repos/aykevl93/kninfra/milestones{/number}","notifications_url":"https://api.github.com/repos/aykevl93/kninfra/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aykevl93/kninfra/labels{/name}","releases_url":"https://api.github.com/repos/aykevl93/kninfra/releases{/id}","created_at":"2013-01-15T15:32:10Z","updated_at":"2015-02-08T21:37:14Z","pushed_at":"2015-02-23T12:33:40Z","git_url":"git://github.com/aykevl93/kninfra.git","ssh_url":"git@github.com:aykevl93/kninfra.git","clone_url":"https://github.com/aykevl93/kninfra.git","svn_url":"https://github.com/aykevl93/kninfra","homepage":"http://karpenoktem.nl/","size":26193,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"khandhas-infra:fotos","ref":"fotos","sha":"a059f2173c5e63db70245f5c005f494c234848a1","user":{"login":"khandhas-infra","id":2059659,"avatar_url":"https://avatars.githubusercontent.com/u/2059659?v=3","gravatar_id":"","url":"https://api.github.com/users/khandhas-infra","html_url":"https://github.com/khandhas-infra","followers_url":"https://api.github.com/users/khandhas-infra/followers","following_url":"https://api.github.com/users/khandhas-infra/following{/other_user}","gists_url":"https://api.github.com/users/khandhas-infra/gists{/gist_id}","starred_url":"https://api.github.com/users/khandhas-infra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/khandhas-infra/subscriptions","organizations_url":"https://api.github.com/users/khandhas-infra/orgs","repos_url":"https://api.github.com/users/khandhas-infra/repos","events_url":"https://api.github.com/users/khandhas-infra/events{/privacy}","received_events_url":"https://api.github.com/users/khandhas-infra/received_events","type":"User","site_admin":false},"repo":{"id":5221281,"name":"kninfra","full_name":"khandhas-infra/kninfra","owner":{"login":"khandhas-infra","id":2059659,"avatar_url":"https://avatars.githubusercontent.com/u/2059659?v=3","gravatar_id":"","url":"https://api.github.com/users/khandhas-infra","html_url":"https://github.com/khandhas-infra","followers_url":"https://api.github.com/users/khandhas-infra/followers","following_url":"https://api.github.com/users/khandhas-infra/following{/other_user}","gists_url":"https://api.github.com/users/khandhas-infra/gists{/gist_id}","starred_url":"https://api.github.com/users/khandhas-infra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/khandhas-infra/subscriptions","organizations_url":"https://api.github.com/users/khandhas-infra/orgs","repos_url":"https://api.github.com/users/khandhas-infra/repos","events_url":"https://api.github.com/users/khandhas-infra/events{/privacy}","received_events_url":"https://api.github.com/users/khandhas-infra/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/khandhas-infra/kninfra","description":"Digital infrastructure of Karpe Noktem","fork":true,"url":"https://api.github.com/repos/khandhas-infra/kninfra","forks_url":"https://api.github.com/repos/khandhas-infra/kninfra/forks","keys_url":"https://api.github.com/repos/khandhas-infra/kninfra/keys{/key_id}","collaborators_url":"https://api.github.com/repos/khandhas-infra/kninfra/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/khandhas-infra/kninfra/teams","hooks_url":"https://api.github.com/repos/khandhas-infra/kninfra/hooks","issue_events_url":"https://api.github.com/repos/khandhas-infra/kninfra/issues/events{/number}","events_url":"https://api.github.com/repos/khandhas-infra/kninfra/events","assignees_url":"https://api.github.com/repos/khandhas-infra/kninfra/assignees{/user}","branches_url":"https://api.github.com/repos/khandhas-infra/kninfra/branches{/branch}","tags_url":"https://api.github.com/repos/khandhas-infra/kninfra/tags","blobs_url":"https://api.github.com/repos/khandhas-infra/kninfra/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/khandhas-infra/kninfra/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/khandhas-infra/kninfra/git/refs{/sha}","trees_url":"https://api.github.com/repos/khandhas-infra/kninfra/git/trees{/sha}","statuses_url":"https://api.github.com/repos/khandhas-infra/kninfra/statuses/{sha}","languages_url":"https://api.github.com/repos/khandhas-infra/kninfra/languages","stargazers_url":"https://api.github.com/repos/khandhas-infra/kninfra/stargazers","contributors_url":"https://api.github.com/repos/khandhas-infra/kninfra/contributors","subscribers_url":"https://api.github.com/repos/khandhas-infra/kninfra/subscribers","subscription_url":"https://api.github.com/repos/khandhas-infra/kninfra/subscription","commits_url":"https://api.github.com/repos/khandhas-infra/kninfra/commits{/sha}","git_commits_url":"https://api.github.com/repos/khandhas-infra/kninfra/git/commits{/sha}","comments_url":"https://api.github.com/repos/khandhas-infra/kninfra/comments{/number}","issue_comment_url":"https://api.github.com/repos/khandhas-infra/kninfra/issues/comments{/number}","contents_url":"https://api.github.com/repos/khandhas-infra/kninfra/contents/{+path}","compare_url":"https://api.github.com/repos/khandhas-infra/kninfra/compare/{base}...{head}","merges_url":"https://api.github.com/repos/khandhas-infra/kninfra/merges","archive_url":"https://api.github.com/repos/khandhas-infra/kninfra/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/khandhas-infra/kninfra/downloads","issues_url":"https://api.github.com/repos/khandhas-infra/kninfra/issues{/number}","pulls_url":"https://api.github.com/repos/khandhas-infra/kninfra/pulls{/number}","milestones_url":"https://api.github.com/repos/khandhas-infra/kninfra/milestones{/number}","notifications_url":"https://api.github.com/repos/khandhas-infra/kninfra/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/khandhas-infra/kninfra/labels{/name}","releases_url":"https://api.github.com/repos/khandhas-infra/kninfra/releases{/id}","created_at":"2012-07-29T09:21:14Z","updated_at":"2014-06-28T10:32:09Z","pushed_at":"2015-02-23T10:59:37Z","git_url":"git://github.com/khandhas-infra/kninfra.git","ssh_url":"git@github.com:khandhas-infra/kninfra.git","clone_url":"https://github.com/khandhas-infra/kninfra.git","svn_url":"https://github.com/khandhas-infra/kninfra","homepage":"http://karpenoktem.nl/","size":26101,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/khandhas-infra/kninfra/pulls/22"},"html":{"href":"https://github.com/khandhas-infra/kninfra/pull/22"},"issue":{"href":"https://api.github.com/repos/khandhas-infra/kninfra/issues/22"},"comments":{"href":"https://api.github.com/repos/khandhas-infra/kninfra/issues/22/comments"},"review_comments":{"href":"https://api.github.com/repos/khandhas-infra/kninfra/pulls/22/comments"},"review_comment":{"href":"https://api.github.com/repos/khandhas-infra/kninfra/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/khandhas-infra/kninfra/pulls/22/commits"},"statuses":{"href":"https://api.github.com/repos/khandhas-infra/kninfra/statuses/f5e0e7004b5a4718f57bbc86f64afa73df6d3a2d"}}}}