{"action":"created","comment":{"url":"https://api.github.com/repos/coders4help/volunteer_planner/pulls/comments/43919065","id":43919065,"diff_hunk":"@@ -78,6 +78,20 @@ def filter_queryset_by_membership(qs, user,\n             )\n     return qs\n \n+def is_manager(user, organization, facility):","path":"organizations/admin.py","position":4,"original_position":4,"commit_id":"5c61a573e00ebc117ed23bae36c692e009fada3f","original_commit_id":"5c61a573e00ebc117ed23bae36c692e009fada3f","user":{"login":"jmewes","id":5235584,"avatar_url":"https://avatars.githubusercontent.com/u/5235584?v=3","gravatar_id":"","url":"https://api.github.com/users/jmewes","html_url":"https://github.com/jmewes","followers_url":"https://api.github.com/users/jmewes/followers","following_url":"https://api.github.com/users/jmewes/following{/other_user}","gists_url":"https://api.github.com/users/jmewes/gists{/gist_id}","starred_url":"https://api.github.com/users/jmewes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmewes/subscriptions","organizations_url":"https://api.github.com/users/jmewes/orgs","repos_url":"https://api.github.com/users/jmewes/repos","events_url":"https://api.github.com/users/jmewes/events{/privacy}","received_events_url":"https://api.github.com/users/jmewes/received_events","type":"User","site_admin":false},"body":"This function is probably not 100% complete but sufficient for the one use case where it is used now. (see below)","created_at":"2015-11-04T18:33:55Z","updated_at":"2015-11-04T18:33:55Z","html_url":"https://github.com/coders4help/volunteer_planner/pull/242#discussion_r43919065","pull_request_url":"https://api.github.com/repos/coders4help/volunteer_planner/pulls/242","_links":{"self":{"href":"https://api.github.com/repos/coders4help/volunteer_planner/pulls/comments/43919065"},"html":{"href":"https://github.com/coders4help/volunteer_planner/pull/242#discussion_r43919065"},"pull_request":{"href":"https://api.github.com/repos/coders4help/volunteer_planner/pulls/242"}}},"pull_request":{"url":"https://api.github.com/repos/coders4help/volunteer_planner/pulls/242","id":49725085,"html_url":"https://github.com/coders4help/volunteer_planner/pull/242","diff_url":"https://github.com/coders4help/volunteer_planner/pull/242.diff","patch_url":"https://github.com/coders4help/volunteer_planner/pull/242.patch","issue_url":"https://api.github.com/repos/coders4help/volunteer_planner/issues/242","number":242,"state":"open","locked":false,"title":"Shift manager UI | Part I","user":{"login":"jmewes","id":5235584,"avatar_url":"https://avatars.githubusercontent.com/u/5235584?v=3","gravatar_id":"","url":"https://api.github.com/users/jmewes","html_url":"https://github.com/jmewes","followers_url":"https://api.github.com/users/jmewes/followers","following_url":"https://api.github.com/users/jmewes/following{/other_user}","gists_url":"https://api.github.com/users/jmewes/gists{/gist_id}","starred_url":"https://api.github.com/users/jmewes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmewes/subscriptions","organizations_url":"https://api.github.com/users/jmewes/orgs","repos_url":"https://api.github.com/users/jmewes/repos","events_url":"https://api.github.com/users/jmewes/events{/privacy}","received_events_url":"https://api.github.com/users/jmewes/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-11-04T18:17:46Z","updated_at":"2015-11-04T18:33:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b5ae4da3378b60aa726b59933a8809dff7ffc457","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/coders4help/volunteer_planner/pulls/242/commits","review_comments_url":"https://api.github.com/repos/coders4help/volunteer_planner/pulls/242/comments","review_comment_url":"https://api.github.com/repos/coders4help/volunteer_planner/pulls/comments{/number}","comments_url":"https://api.github.com/repos/coders4help/volunteer_planner/issues/242/comments","statuses_url":"https://api.github.com/repos/coders4help/volunteer_planner/statuses/5c61a573e00ebc117ed23bae36c692e009fada3f","head":{"label":"jmewes:feature/manager_shift_overview","ref":"feature/manager_shift_overview","sha":"5c61a573e00ebc117ed23bae36c692e009fada3f","user":{"login":"jmewes","id":5235584,"avatar_url":"https://avatars.githubusercontent.com/u/5235584?v=3","gravatar_id":"","url":"https://api.github.com/users/jmewes","html_url":"https://github.com/jmewes","followers_url":"https://api.github.com/users/jmewes/followers","following_url":"https://api.github.com/users/jmewes/following{/other_user}","gists_url":"https://api.github.com/users/jmewes/gists{/gist_id}","starred_url":"https://api.github.com/users/jmewes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmewes/subscriptions","organizations_url":"https://api.github.com/users/jmewes/orgs","repos_url":"https://api.github.com/users/jmewes/repos","events_url":"https://api.github.com/users/jmewes/events{/privacy}","received_events_url":"https://api.github.com/users/jmewes/received_events","type":"User","site_admin":false},"repo":{"id":43570269,"name":"volunteer_planner","full_name":"jmewes/volunteer_planner","owner":{"login":"jmewes","id":5235584,"avatar_url":"https://avatars.githubusercontent.com/u/5235584?v=3","gravatar_id":"","url":"https://api.github.com/users/jmewes","html_url":"https://github.com/jmewes","followers_url":"https://api.github.com/users/jmewes/followers","following_url":"https://api.github.com/users/jmewes/following{/other_user}","gists_url":"https://api.github.com/users/jmewes/gists{/gist_id}","starred_url":"https://api.github.com/users/jmewes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmewes/subscriptions","organizations_url":"https://api.github.com/users/jmewes/orgs","repos_url":"https://api.github.com/users/jmewes/repos","events_url":"https://api.github.com/users/jmewes/events{/privacy}","received_events_url":"https://api.github.com/users/jmewes/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jmewes/volunteer_planner","description":"This repro hosts the code for volunteer-planner.org. A platform to schedule shifts of volunteers.","fork":true,"url":"https://api.github.com/repos/jmewes/volunteer_planner","forks_url":"https://api.github.com/repos/jmewes/volunteer_planner/forks","keys_url":"https://api.github.com/repos/jmewes/volunteer_planner/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jmewes/volunteer_planner/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jmewes/volunteer_planner/teams","hooks_url":"https://api.github.com/repos/jmewes/volunteer_planner/hooks","issue_events_url":"https://api.github.com/repos/jmewes/volunteer_planner/issues/events{/number}","events_url":"https://api.github.com/repos/jmewes/volunteer_planner/events","assignees_url":"https://api.github.com/repos/jmewes/volunteer_planner/assignees{/user}","branches_url":"https://api.github.com/repos/jmewes/volunteer_planner/branches{/branch}","tags_url":"https://api.github.com/repos/jmewes/volunteer_planner/tags","blobs_url":"https://api.github.com/repos/jmewes/volunteer_planner/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jmewes/volunteer_planner/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jmewes/volunteer_planner/git/refs{/sha}","trees_url":"https://api.github.com/repos/jmewes/volunteer_planner/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jmewes/volunteer_planner/statuses/{sha}","languages_url":"https://api.github.com/repos/jmewes/volunteer_planner/languages","stargazers_url":"https://api.github.com/repos/jmewes/volunteer_planner/stargazers","contributors_url":"https://api.github.com/repos/jmewes/volunteer_planner/contributors","subscribers_url":"https://api.github.com/repos/jmewes/volunteer_planner/subscribers","subscription_url":"https://api.github.com/repos/jmewes/volunteer_planner/subscription","commits_url":"https://api.github.com/repos/jmewes/volunteer_planner/commits{/sha}","git_commits_url":"https://api.github.com/repos/jmewes/volunteer_planner/git/commits{/sha}","comments_url":"https://api.github.com/repos/jmewes/volunteer_planner/comments{/number}","issue_comment_url":"https://api.github.com/repos/jmewes/volunteer_planner/issues/comments{/number}","contents_url":"https://api.github.com/repos/jmewes/volunteer_planner/contents/{+path}","compare_url":"https://api.github.com/repos/jmewes/volunteer_planner/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jmewes/volunteer_planner/merges","archive_url":"https://api.github.com/repos/jmewes/volunteer_planner/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jmewes/volunteer_planner/downloads","issues_url":"https://api.github.com/repos/jmewes/volunteer_planner/issues{/number}","pulls_url":"https://api.github.com/repos/jmewes/volunteer_planner/pulls{/number}","milestones_url":"https://api.github.com/repos/jmewes/volunteer_planner/milestones{/number}","notifications_url":"https://api.github.com/repos/jmewes/volunteer_planner/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jmewes/volunteer_planner/labels{/name}","releases_url":"https://api.github.com/repos/jmewes/volunteer_planner/releases{/id}","created_at":"2015-10-02T18:49:17Z","updated_at":"2015-10-28T08:31:14Z","pushed_at":"2015-11-04T18:16:23Z","git_url":"git://github.com/jmewes/volunteer_planner.git","ssh_url":"git@github.com:jmewes/volunteer_planner.git","clone_url":"https://github.com/jmewes/volunteer_planner.git","svn_url":"https://github.com/jmewes/volunteer_planner","homepage":"","size":6907,"stargazers_count":2,"watchers_count":2,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":2,"default_branch":"develop"}},"base":{"label":"coders4help:develop","ref":"develop","sha":"4c995c910194d6cf8c59117764be8482d05c3064","user":{"login":"coders4help","id":14154020,"avatar_url":"https://avatars.githubusercontent.com/u/14154020?v=3","gravatar_id":"","url":"https://api.github.com/users/coders4help","html_url":"https://github.com/coders4help","followers_url":"https://api.github.com/users/coders4help/followers","following_url":"https://api.github.com/users/coders4help/following{/other_user}","gists_url":"https://api.github.com/users/coders4help/gists{/gist_id}","starred_url":"https://api.github.com/users/coders4help/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coders4help/subscriptions","organizations_url":"https://api.github.com/users/coders4help/orgs","repos_url":"https://api.github.com/users/coders4help/repos","events_url":"https://api.github.com/users/coders4help/events{/privacy}","received_events_url":"https://api.github.com/users/coders4help/received_events","type":"Organization","site_admin":false},"repo":{"id":42022137,"name":"volunteer_planner","full_name":"coders4help/volunteer_planner","owner":{"login":"coders4help","id":14154020,"avatar_url":"https://avatars.githubusercontent.com/u/14154020?v=3","gravatar_id":"","url":"https://api.github.com/users/coders4help","html_url":"https://github.com/coders4help","followers_url":"https://api.github.com/users/coders4help/followers","following_url":"https://api.github.com/users/coders4help/following{/other_user}","gists_url":"https://api.github.com/users/coders4help/gists{/gist_id}","starred_url":"https://api.github.com/users/coders4help/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coders4help/subscriptions","organizations_url":"https://api.github.com/users/coders4help/orgs","repos_url":"https://api.github.com/users/coders4help/repos","events_url":"https://api.github.com/users/coders4help/events{/privacy}","received_events_url":"https://api.github.com/users/coders4help/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/coders4help/volunteer_planner","description":"This repro hosts the code for volunteer-planner.org. A platform to schedule shifts of volunteers.","fork":false,"url":"https://api.github.com/repos/coders4help/volunteer_planner","forks_url":"https://api.github.com/repos/coders4help/volunteer_planner/forks","keys_url":"https://api.github.com/repos/coders4help/volunteer_planner/keys{/key_id}","collaborators_url":"https://api.github.com/repos/coders4help/volunteer_planner/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/coders4help/volunteer_planner/teams","hooks_url":"https://api.github.com/repos/coders4help/volunteer_planner/hooks","issue_events_url":"https://api.github.com/repos/coders4help/volunteer_planner/issues/events{/number}","events_url":"https://api.github.com/repos/coders4help/volunteer_planner/events","assignees_url":"https://api.github.com/repos/coders4help/volunteer_planner/assignees{/user}","branches_url":"https://api.github.com/repos/coders4help/volunteer_planner/branches{/branch}","tags_url":"https://api.github.com/repos/coders4help/volunteer_planner/tags","blobs_url":"https://api.github.com/repos/coders4help/volunteer_planner/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/coders4help/volunteer_planner/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/coders4help/volunteer_planner/git/refs{/sha}","trees_url":"https://api.github.com/repos/coders4help/volunteer_planner/git/trees{/sha}","statuses_url":"https://api.github.com/repos/coders4help/volunteer_planner/statuses/{sha}","languages_url":"https://api.github.com/repos/coders4help/volunteer_planner/languages","stargazers_url":"https://api.github.com/repos/coders4help/volunteer_planner/stargazers","contributors_url":"https://api.github.com/repos/coders4help/volunteer_planner/contributors","subscribers_url":"https://api.github.com/repos/coders4help/volunteer_planner/subscribers","subscription_url":"https://api.github.com/repos/coders4help/volunteer_planner/subscription","commits_url":"https://api.github.com/repos/coders4help/volunteer_planner/commits{/sha}","git_commits_url":"https://api.github.com/repos/coders4help/volunteer_planner/git/commits{/sha}","comments_url":"https://api.github.com/repos/coders4help/volunteer_planner/comments{/number}","issue_comment_url":"https://api.github.com/repos/coders4help/volunteer_planner/issues/comments{/number}","contents_url":"https://api.github.com/repos/coders4help/volunteer_planner/contents/{+path}","compare_url":"https://api.github.com/repos/coders4help/volunteer_planner/compare/{base}...{head}","merges_url":"https://api.github.com/repos/coders4help/volunteer_planner/merges","archive_url":"https://api.github.com/repos/coders4help/volunteer_planner/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/coders4help/volunteer_planner/downloads","issues_url":"https://api.github.com/repos/coders4help/volunteer_planner/issues{/number}","pulls_url":"https://api.github.com/repos/coders4help/volunteer_planner/pulls{/number}","milestones_url":"https://api.github.com/repos/coders4help/volunteer_planner/milestones{/number}","notifications_url":"https://api.github.com/repos/coders4help/volunteer_planner/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/coders4help/volunteer_planner/labels{/name}","releases_url":"https://api.github.com/repos/coders4help/volunteer_planner/releases{/id}","created_at":"2015-09-06T23:21:42Z","updated_at":"2015-11-04T01:22:20Z","pushed_at":"2015-11-04T18:17:46Z","git_url":"git://github.com/coders4help/volunteer_planner.git","ssh_url":"git@github.com:coders4help/volunteer_planner.git","clone_url":"https://github.com/coders4help/volunteer_planner.git","svn_url":"https://github.com/coders4help/volunteer_planner","homepage":"","size":8830,"stargazers_count":38,"watchers_count":38,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":34,"mirror_url":null,"open_issues_count":17,"forks":34,"open_issues":17,"watchers":38,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/coders4help/volunteer_planner/pulls/242"},"html":{"href":"https://github.com/coders4help/volunteer_planner/pull/242"},"issue":{"href":"https://api.github.com/repos/coders4help/volunteer_planner/issues/242"},"comments":{"href":"https://api.github.com/repos/coders4help/volunteer_planner/issues/242/comments"},"review_comments":{"href":"https://api.github.com/repos/coders4help/volunteer_planner/pulls/242/comments"},"review_comment":{"href":"https://api.github.com/repos/coders4help/volunteer_planner/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/coders4help/volunteer_planner/pulls/242/commits"},"statuses":{"href":"https://api.github.com/repos/coders4help/volunteer_planner/statuses/5c61a573e00ebc117ed23bae36c692e009fada3f"}}}}