{"action":"opened","number":30,"pull_request":{"url":"https://api.github.com/repos/Cadasta/django-tutelary/pulls/30","id":85253939,"html_url":"https://github.com/Cadasta/django-tutelary/pull/30","diff_url":"https://github.com/Cadasta/django-tutelary/pull/30.diff","patch_url":"https://github.com/Cadasta/django-tutelary/pull/30.patch","issue_url":"https://api.github.com/repos/Cadasta/django-tutelary/issues/30","number":30,"state":"open","locked":false,"title":"Add PermissionsFilterMixin","user":{"login":"oliverroick","id":159510,"avatar_url":"https://avatars.githubusercontent.com/u/159510?v=3","gravatar_id":"","url":"https://api.github.com/users/oliverroick","html_url":"https://github.com/oliverroick","followers_url":"https://api.github.com/users/oliverroick/followers","following_url":"https://api.github.com/users/oliverroick/following{/other_user}","gists_url":"https://api.github.com/users/oliverroick/gists{/gist_id}","starred_url":"https://api.github.com/users/oliverroick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oliverroick/subscriptions","organizations_url":"https://api.github.com/users/oliverroick/orgs","repos_url":"https://api.github.com/users/oliverroick/repos","events_url":"https://api.github.com/users/oliverroick/events{/privacy}","received_events_url":"https://api.github.com/users/oliverroick/received_events","type":"User","site_admin":false},"body":"This PR adds the `PermissionsFilterMixin` that allows for filtering query sets based on required permissions provided through `GET` query parameters. \r\n\r\nFor example, if there is an API that lists projects (`/projects/`) and the response should only contain projects that the requesting user is allowed to delete, requesting `/projects/?permissions=project.delete` will filter the response accordingly. ","created_at":"2016-09-14T15:49:30Z","updated_at":"2016-09-14T15:49:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/Cadasta/django-tutelary/pulls/30/commits","review_comments_url":"https://api.github.com/repos/Cadasta/django-tutelary/pulls/30/comments","review_comment_url":"https://api.github.com/repos/Cadasta/django-tutelary/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Cadasta/django-tutelary/issues/30/comments","statuses_url":"https://api.github.com/repos/Cadasta/django-tutelary/statuses/69f530f1b36299b2c68c4ab3f75a1053b9f7b5da","head":{"label":"Cadasta:permissions-filter","ref":"permissions-filter","sha":"69f530f1b36299b2c68c4ab3f75a1053b9f7b5da","user":{"login":"Cadasta","id":11321107,"avatar_url":"https://avatars.githubusercontent.com/u/11321107?v=3","gravatar_id":"","url":"https://api.github.com/users/Cadasta","html_url":"https://github.com/Cadasta","followers_url":"https://api.github.com/users/Cadasta/followers","following_url":"https://api.github.com/users/Cadasta/following{/other_user}","gists_url":"https://api.github.com/users/Cadasta/gists{/gist_id}","starred_url":"https://api.github.com/users/Cadasta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Cadasta/subscriptions","organizations_url":"https://api.github.com/users/Cadasta/orgs","repos_url":"https://api.github.com/users/Cadasta/repos","events_url":"https://api.github.com/users/Cadasta/events{/privacy}","received_events_url":"https://api.github.com/users/Cadasta/received_events","type":"Organization","site_admin":false},"repo":{"id":47774851,"name":"django-tutelary","full_name":"Cadasta/django-tutelary","owner":{"login":"Cadasta","id":11321107,"avatar_url":"https://avatars.githubusercontent.com/u/11321107?v=3","gravatar_id":"","url":"https://api.github.com/users/Cadasta","html_url":"https://github.com/Cadasta","followers_url":"https://api.github.com/users/Cadasta/followers","following_url":"https://api.github.com/users/Cadasta/following{/other_user}","gists_url":"https://api.github.com/users/Cadasta/gists{/gist_id}","starred_url":"https://api.github.com/users/Cadasta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Cadasta/subscriptions","organizations_url":"https://api.github.com/users/Cadasta/orgs","repos_url":"https://api.github.com/users/Cadasta/repos","events_url":"https://api.github.com/users/Cadasta/events{/privacy}","received_events_url":"https://api.github.com/users/Cadasta/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Cadasta/django-tutelary","description":"Policy-based permissions for Django","fork":false,"url":"https://api.github.com/repos/Cadasta/django-tutelary","forks_url":"https://api.github.com/repos/Cadasta/django-tutelary/forks","keys_url":"https://api.github.com/repos/Cadasta/django-tutelary/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Cadasta/django-tutelary/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Cadasta/django-tutelary/teams","hooks_url":"https://api.github.com/repos/Cadasta/django-tutelary/hooks","issue_events_url":"https://api.github.com/repos/Cadasta/django-tutelary/issues/events{/number}","events_url":"https://api.github.com/repos/Cadasta/django-tutelary/events","assignees_url":"https://api.github.com/repos/Cadasta/django-tutelary/assignees{/user}","branches_url":"https://api.github.com/repos/Cadasta/django-tutelary/branches{/branch}","tags_url":"https://api.github.com/repos/Cadasta/django-tutelary/tags","blobs_url":"https://api.github.com/repos/Cadasta/django-tutelary/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Cadasta/django-tutelary/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Cadasta/django-tutelary/git/refs{/sha}","trees_url":"https://api.github.com/repos/Cadasta/django-tutelary/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Cadasta/django-tutelary/statuses/{sha}","languages_url":"https://api.github.com/repos/Cadasta/django-tutelary/languages","stargazers_url":"https://api.github.com/repos/Cadasta/django-tutelary/stargazers","contributors_url":"https://api.github.com/repos/Cadasta/django-tutelary/contributors","subscribers_url":"https://api.github.com/repos/Cadasta/django-tutelary/subscribers","subscription_url":"https://api.github.com/repos/Cadasta/django-tutelary/subscription","commits_url":"https://api.github.com/repos/Cadasta/django-tutelary/commits{/sha}","git_commits_url":"https://api.github.com/repos/Cadasta/django-tutelary/git/commits{/sha}","comments_url":"https://api.github.com/repos/Cadasta/django-tutelary/comments{/number}","issue_comment_url":"https://api.github.com/repos/Cadasta/django-tutelary/issues/comments{/number}","contents_url":"https://api.github.com/repos/Cadasta/django-tutelary/contents/{+path}","compare_url":"https://api.github.com/repos/Cadasta/django-tutelary/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Cadasta/django-tutelary/merges","archive_url":"https://api.github.com/repos/Cadasta/django-tutelary/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Cadasta/django-tutelary/downloads","issues_url":"https://api.github.com/repos/Cadasta/django-tutelary/issues{/number}","pulls_url":"https://api.github.com/repos/Cadasta/django-tutelary/pulls{/number}","milestones_url":"https://api.github.com/repos/Cadasta/django-tutelary/milestones{/number}","notifications_url":"https://api.github.com/repos/Cadasta/django-tutelary/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Cadasta/django-tutelary/labels{/name}","releases_url":"https://api.github.com/repos/Cadasta/django-tutelary/releases{/id}","deployments_url":"https://api.github.com/repos/Cadasta/django-tutelary/deployments","created_at":"2015-12-10T16:47:12Z","updated_at":"2016-08-24T21:23:25Z","pushed_at":"2016-09-14T15:49:30Z","git_url":"git://github.com/Cadasta/django-tutelary.git","ssh_url":"git@github.com:Cadasta/django-tutelary.git","clone_url":"https://github.com/Cadasta/django-tutelary.git","svn_url":"https://github.com/Cadasta/django-tutelary","homepage":"http://django-tutelary.readthedocs.io/","size":261,"stargazers_count":3,"watchers_count":3,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":4,"forks":2,"open_issues":4,"watchers":3,"default_branch":"master"}},"base":{"label":"Cadasta:master","ref":"master","sha":"eb0274eaddacef2592aad90edb008f6e22368934","user":{"login":"Cadasta","id":11321107,"avatar_url":"https://avatars.githubusercontent.com/u/11321107?v=3","gravatar_id":"","url":"https://api.github.com/users/Cadasta","html_url":"https://github.com/Cadasta","followers_url":"https://api.github.com/users/Cadasta/followers","following_url":"https://api.github.com/users/Cadasta/following{/other_user}","gists_url":"https://api.github.com/users/Cadasta/gists{/gist_id}","starred_url":"https://api.github.com/users/Cadasta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Cadasta/subscriptions","organizations_url":"https://api.github.com/users/Cadasta/orgs","repos_url":"https://api.github.com/users/Cadasta/repos","events_url":"https://api.github.com/users/Cadasta/events{/privacy}","received_events_url":"https://api.github.com/users/Cadasta/received_events","type":"Organization","site_admin":false},"repo":{"id":47774851,"name":"django-tutelary","full_name":"Cadasta/django-tutelary","owner":{"login":"Cadasta","id":11321107,"avatar_url":"https://avatars.githubusercontent.com/u/11321107?v=3","gravatar_id":"","url":"https://api.github.com/users/Cadasta","html_url":"https://github.com/Cadasta","followers_url":"https://api.github.com/users/Cadasta/followers","following_url":"https://api.github.com/users/Cadasta/following{/other_user}","gists_url":"https://api.github.com/users/Cadasta/gists{/gist_id}","starred_url":"https://api.github.com/users/Cadasta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Cadasta/subscriptions","organizations_url":"https://api.github.com/users/Cadasta/orgs","repos_url":"https://api.github.com/users/Cadasta/repos","events_url":"https://api.github.com/users/Cadasta/events{/privacy}","received_events_url":"https://api.github.com/users/Cadasta/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Cadasta/django-tutelary","description":"Policy-based permissions for Django","fork":false,"url":"https://api.github.com/repos/Cadasta/django-tutelary","forks_url":"https://api.github.com/repos/Cadasta/django-tutelary/forks","keys_url":"https://api.github.com/repos/Cadasta/django-tutelary/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Cadasta/django-tutelary/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Cadasta/django-tutelary/teams","hooks_url":"https://api.github.com/repos/Cadasta/django-tutelary/hooks","issue_events_url":"https://api.github.com/repos/Cadasta/django-tutelary/issues/events{/number}","events_url":"https://api.github.com/repos/Cadasta/django-tutelary/events","assignees_url":"https://api.github.com/repos/Cadasta/django-tutelary/assignees{/user}","branches_url":"https://api.github.com/repos/Cadasta/django-tutelary/branches{/branch}","tags_url":"https://api.github.com/repos/Cadasta/django-tutelary/tags","blobs_url":"https://api.github.com/repos/Cadasta/django-tutelary/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Cadasta/django-tutelary/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Cadasta/django-tutelary/git/refs{/sha}","trees_url":"https://api.github.com/repos/Cadasta/django-tutelary/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Cadasta/django-tutelary/statuses/{sha}","languages_url":"https://api.github.com/repos/Cadasta/django-tutelary/languages","stargazers_url":"https://api.github.com/repos/Cadasta/django-tutelary/stargazers","contributors_url":"https://api.github.com/repos/Cadasta/django-tutelary/contributors","subscribers_url":"https://api.github.com/repos/Cadasta/django-tutelary/subscribers","subscription_url":"https://api.github.com/repos/Cadasta/django-tutelary/subscription","commits_url":"https://api.github.com/repos/Cadasta/django-tutelary/commits{/sha}","git_commits_url":"https://api.github.com/repos/Cadasta/django-tutelary/git/commits{/sha}","comments_url":"https://api.github.com/repos/Cadasta/django-tutelary/comments{/number}","issue_comment_url":"https://api.github.com/repos/Cadasta/django-tutelary/issues/comments{/number}","contents_url":"https://api.github.com/repos/Cadasta/django-tutelary/contents/{+path}","compare_url":"https://api.github.com/repos/Cadasta/django-tutelary/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Cadasta/django-tutelary/merges","archive_url":"https://api.github.com/repos/Cadasta/django-tutelary/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Cadasta/django-tutelary/downloads","issues_url":"https://api.github.com/repos/Cadasta/django-tutelary/issues{/number}","pulls_url":"https://api.github.com/repos/Cadasta/django-tutelary/pulls{/number}","milestones_url":"https://api.github.com/repos/Cadasta/django-tutelary/milestones{/number}","notifications_url":"https://api.github.com/repos/Cadasta/django-tutelary/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Cadasta/django-tutelary/labels{/name}","releases_url":"https://api.github.com/repos/Cadasta/django-tutelary/releases{/id}","deployments_url":"https://api.github.com/repos/Cadasta/django-tutelary/deployments","created_at":"2015-12-10T16:47:12Z","updated_at":"2016-08-24T21:23:25Z","pushed_at":"2016-09-14T15:49:30Z","git_url":"git://github.com/Cadasta/django-tutelary.git","ssh_url":"git@github.com:Cadasta/django-tutelary.git","clone_url":"https://github.com/Cadasta/django-tutelary.git","svn_url":"https://github.com/Cadasta/django-tutelary","homepage":"http://django-tutelary.readthedocs.io/","size":261,"stargazers_count":3,"watchers_count":3,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":4,"forks":2,"open_issues":4,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Cadasta/django-tutelary/pulls/30"},"html":{"href":"https://github.com/Cadasta/django-tutelary/pull/30"},"issue":{"href":"https://api.github.com/repos/Cadasta/django-tutelary/issues/30"},"comments":{"href":"https://api.github.com/repos/Cadasta/django-tutelary/issues/30/comments"},"review_comments":{"href":"https://api.github.com/repos/Cadasta/django-tutelary/pulls/30/comments"},"review_comment":{"href":"https://api.github.com/repos/Cadasta/django-tutelary/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Cadasta/django-tutelary/pulls/30/commits"},"statuses":{"href":"https://api.github.com/repos/Cadasta/django-tutelary/statuses/69f530f1b36299b2c68c4ab3f75a1053b9f7b5da"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":81,"deletions":1,"changed_files":2}}
{"actor":{"display_login":"oliverroick"}}