{"action":"opened","number":1834,"pull_request":{"url":"https://api.github.com/repos/PopulateTools/gobierto/pulls/1834","id":206039429,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA2MDM5NDI5","html_url":"https://github.com/PopulateTools/gobierto/pull/1834","diff_url":"https://github.com/PopulateTools/gobierto/pull/1834.diff","patch_url":"https://github.com/PopulateTools/gobierto/pull/1834.patch","issue_url":"https://api.github.com/repos/PopulateTools/gobierto/issues/1834","number":1834,"state":"open","locked":false,"title":"1808 protect terms and vocabularies with permissions","user":{"login":"entantoencuanto","id":446459,"node_id":"MDQ6VXNlcjQ0NjQ1OQ==","avatar_url":"https://avatars3.githubusercontent.com/u/446459?v=4","gravatar_id":"","url":"https://api.github.com/users/entantoencuanto","html_url":"https://github.com/entantoencuanto","followers_url":"https://api.github.com/users/entantoencuanto/followers","following_url":"https://api.github.com/users/entantoencuanto/following{/other_user}","gists_url":"https://api.github.com/users/entantoencuanto/gists{/gist_id}","starred_url":"https://api.github.com/users/entantoencuanto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/entantoencuanto/subscriptions","organizations_url":"https://api.github.com/users/entantoencuanto/orgs","repos_url":"https://api.github.com/users/entantoencuanto/repos","events_url":"https://api.github.com/users/entantoencuanto/events{/privacy}","received_events_url":"https://api.github.com/users/entantoencuanto/received_events","type":"User","site_admin":false},"body":"Closes #1808\r\n\r\n\r\n## :v: What does this PR do?\r\nIncludes a filter to check if an admin has permissions to edit vocabularies and terms and redirects him in case it doesn't.\r\n\r\n## :mag: How should this be manually tested?\r\nUpdate an admin to be regular and don't check the Vocabularies checkbox. An admin with this profile shouldn't be available to reach `/admin/vocabularies` path.\r\n\r\n## :shipit: Does this PR changes any configuration file?\r\nNo","created_at":"2018-08-03T13:59:52Z","updated_at":"2018-08-03T13:59:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/PopulateTools/gobierto/pulls/1834/commits","review_comments_url":"https://api.github.com/repos/PopulateTools/gobierto/pulls/1834/comments","review_comment_url":"https://api.github.com/repos/PopulateTools/gobierto/pulls/comments{/number}","comments_url":"https://api.github.com/repos/PopulateTools/gobierto/issues/1834/comments","statuses_url":"https://api.github.com/repos/PopulateTools/gobierto/statuses/fe675e74b20e058619eca61ea43849e7797e274c","head":{"label":"PopulateTools:1808-protect_terms_and_vocabularies_with_permissions","ref":"1808-protect_terms_and_vocabularies_with_permissions","sha":"fe675e74b20e058619eca61ea43849e7797e274c","user":{"login":"PopulateTools","id":12809868,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEyODA5ODY4","avatar_url":"https://avatars2.githubusercontent.com/u/12809868?v=4","gravatar_id":"","url":"https://api.github.com/users/PopulateTools","html_url":"https://github.com/PopulateTools","followers_url":"https://api.github.com/users/PopulateTools/followers","following_url":"https://api.github.com/users/PopulateTools/following{/other_user}","gists_url":"https://api.github.com/users/PopulateTools/gists{/gist_id}","starred_url":"https://api.github.com/users/PopulateTools/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PopulateTools/subscriptions","organizations_url":"https://api.github.com/users/PopulateTools/orgs","repos_url":"https://api.github.com/users/PopulateTools/repos","events_url":"https://api.github.com/users/PopulateTools/events{/privacy}","received_events_url":"https://api.github.com/users/PopulateTools/received_events","type":"Organization","site_admin":false},"repo":{"id":71801692,"node_id":"MDEwOlJlcG9zaXRvcnk3MTgwMTY5Mg==","name":"gobierto","full_name":"PopulateTools/gobierto","owner":{"login":"PopulateTools","id":12809868,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEyODA5ODY4","avatar_url":"https://avatars2.githubusercontent.com/u/12809868?v=4","gravatar_id":"","url":"https://api.github.com/users/PopulateTools","html_url":"https://github.com/PopulateTools","followers_url":"https://api.github.com/users/PopulateTools/followers","following_url":"https://api.github.com/users/PopulateTools/following{/other_user}","gists_url":"https://api.github.com/users/PopulateTools/gists{/gist_id}","starred_url":"https://api.github.com/users/PopulateTools/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PopulateTools/subscriptions","organizations_url":"https://api.github.com/users/PopulateTools/orgs","repos_url":"https://api.github.com/users/PopulateTools/repos","events_url":"https://api.github.com/users/PopulateTools/events{/privacy}","received_events_url":"https://api.github.com/users/PopulateTools/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/PopulateTools/gobierto","description":"Plataforma de gobierno abierto open source","fork":false,"url":"https://api.github.com/repos/PopulateTools/gobierto","forks_url":"https://api.github.com/repos/PopulateTools/gobierto/forks","keys_url":"https://api.github.com/repos/PopulateTools/gobierto/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PopulateTools/gobierto/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PopulateTools/gobierto/teams","hooks_url":"https://api.github.com/repos/PopulateTools/gobierto/hooks","issue_events_url":"https://api.github.com/repos/PopulateTools/gobierto/issues/events{/number}","events_url":"https://api.github.com/repos/PopulateTools/gobierto/events","assignees_url":"https://api.github.com/repos/PopulateTools/gobierto/assignees{/user}","branches_url":"https://api.github.com/repos/PopulateTools/gobierto/branches{/branch}","tags_url":"https://api.github.com/repos/PopulateTools/gobierto/tags","blobs_url":"https://api.github.com/repos/PopulateTools/gobierto/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PopulateTools/gobierto/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PopulateTools/gobierto/git/refs{/sha}","trees_url":"https://api.github.com/repos/PopulateTools/gobierto/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PopulateTools/gobierto/statuses/{sha}","languages_url":"https://api.github.com/repos/PopulateTools/gobierto/languages","stargazers_url":"https://api.github.com/repos/PopulateTools/gobierto/stargazers","contributors_url":"https://api.github.com/repos/PopulateTools/gobierto/contributors","subscribers_url":"https://api.github.com/repos/PopulateTools/gobierto/subscribers","subscription_url":"https://api.github.com/repos/PopulateTools/gobierto/subscription","commits_url":"https://api.github.com/repos/PopulateTools/gobierto/commits{/sha}","git_commits_url":"https://api.github.com/repos/PopulateTools/gobierto/git/commits{/sha}","comments_url":"https://api.github.com/repos/PopulateTools/gobierto/comments{/number}","issue_comment_url":"https://api.github.com/repos/PopulateTools/gobierto/issues/comments{/number}","contents_url":"https://api.github.com/repos/PopulateTools/gobierto/contents/{+path}","compare_url":"https://api.github.com/repos/PopulateTools/gobierto/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PopulateTools/gobierto/merges","archive_url":"https://api.github.com/repos/PopulateTools/gobierto/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PopulateTools/gobierto/downloads","issues_url":"https://api.github.com/repos/PopulateTools/gobierto/issues{/number}","pulls_url":"https://api.github.com/repos/PopulateTools/gobierto/pulls{/number}","milestones_url":"https://api.github.com/repos/PopulateTools/gobierto/milestones{/number}","notifications_url":"https://api.github.com/repos/PopulateTools/gobierto/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PopulateTools/gobierto/labels{/name}","releases_url":"https://api.github.com/repos/PopulateTools/gobierto/releases{/id}","deployments_url":"https://api.github.com/repos/PopulateTools/gobierto/deployments","created_at":"2016-10-24T15:13:26Z","updated_at":"2018-08-03T12:48:20Z","pushed_at":"2018-08-03T13:56:17Z","git_url":"git://github.com/PopulateTools/gobierto.git","ssh_url":"git@github.com:PopulateTools/gobierto.git","clone_url":"https://github.com/PopulateTools/gobierto.git","svn_url":"https://github.com/PopulateTools/gobierto","homepage":"https://gobierto.es","size":22033,"stargazers_count":36,"watchers_count":36,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"archived":false,"open_issues_count":97,"license":{"key":"agpl-3.0","name":"GNU Affero General Public License v3.0","spdx_id":"AGPL-3.0","url":"https://api.github.com/licenses/agpl-3.0","node_id":"MDc6TGljZW5zZTE="},"forks":9,"open_issues":97,"watchers":36,"default_branch":"master"}},"base":{"label":"PopulateTools:master","ref":"master","sha":"cdc7ebc09dc651dc25146c29bf50f002a289040a","user":{"login":"PopulateTools","id":12809868,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEyODA5ODY4","avatar_url":"https://avatars2.githubusercontent.com/u/12809868?v=4","gravatar_id":"","url":"https://api.github.com/users/PopulateTools","html_url":"https://github.com/PopulateTools","followers_url":"https://api.github.com/users/PopulateTools/followers","following_url":"https://api.github.com/users/PopulateTools/following{/other_user}","gists_url":"https://api.github.com/users/PopulateTools/gists{/gist_id}","starred_url":"https://api.github.com/users/PopulateTools/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PopulateTools/subscriptions","organizations_url":"https://api.github.com/users/PopulateTools/orgs","repos_url":"https://api.github.com/users/PopulateTools/repos","events_url":"https://api.github.com/users/PopulateTools/events{/privacy}","received_events_url":"https://api.github.com/users/PopulateTools/received_events","type":"Organization","site_admin":false},"repo":{"id":71801692,"node_id":"MDEwOlJlcG9zaXRvcnk3MTgwMTY5Mg==","name":"gobierto","full_name":"PopulateTools/gobierto","owner":{"login":"PopulateTools","id":12809868,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEyODA5ODY4","avatar_url":"https://avatars2.githubusercontent.com/u/12809868?v=4","gravatar_id":"","url":"https://api.github.com/users/PopulateTools","html_url":"https://github.com/PopulateTools","followers_url":"https://api.github.com/users/PopulateTools/followers","following_url":"https://api.github.com/users/PopulateTools/following{/other_user}","gists_url":"https://api.github.com/users/PopulateTools/gists{/gist_id}","starred_url":"https://api.github.com/users/PopulateTools/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PopulateTools/subscriptions","organizations_url":"https://api.github.com/users/PopulateTools/orgs","repos_url":"https://api.github.com/users/PopulateTools/repos","events_url":"https://api.github.com/users/PopulateTools/events{/privacy}","received_events_url":"https://api.github.com/users/PopulateTools/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/PopulateTools/gobierto","description":"Plataforma de gobierno abierto open source","fork":false,"url":"https://api.github.com/repos/PopulateTools/gobierto","forks_url":"https://api.github.com/repos/PopulateTools/gobierto/forks","keys_url":"https://api.github.com/repos/PopulateTools/gobierto/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PopulateTools/gobierto/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PopulateTools/gobierto/teams","hooks_url":"https://api.github.com/repos/PopulateTools/gobierto/hooks","issue_events_url":"https://api.github.com/repos/PopulateTools/gobierto/issues/events{/number}","events_url":"https://api.github.com/repos/PopulateTools/gobierto/events","assignees_url":"https://api.github.com/repos/PopulateTools/gobierto/assignees{/user}","branches_url":"https://api.github.com/repos/PopulateTools/gobierto/branches{/branch}","tags_url":"https://api.github.com/repos/PopulateTools/gobierto/tags","blobs_url":"https://api.github.com/repos/PopulateTools/gobierto/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PopulateTools/gobierto/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PopulateTools/gobierto/git/refs{/sha}","trees_url":"https://api.github.com/repos/PopulateTools/gobierto/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PopulateTools/gobierto/statuses/{sha}","languages_url":"https://api.github.com/repos/PopulateTools/gobierto/languages","stargazers_url":"https://api.github.com/repos/PopulateTools/gobierto/stargazers","contributors_url":"https://api.github.com/repos/PopulateTools/gobierto/contributors","subscribers_url":"https://api.github.com/repos/PopulateTools/gobierto/subscribers","subscription_url":"https://api.github.com/repos/PopulateTools/gobierto/subscription","commits_url":"https://api.github.com/repos/PopulateTools/gobierto/commits{/sha}","git_commits_url":"https://api.github.com/repos/PopulateTools/gobierto/git/commits{/sha}","comments_url":"https://api.github.com/repos/PopulateTools/gobierto/comments{/number}","issue_comment_url":"https://api.github.com/repos/PopulateTools/gobierto/issues/comments{/number}","contents_url":"https://api.github.com/repos/PopulateTools/gobierto/contents/{+path}","compare_url":"https://api.github.com/repos/PopulateTools/gobierto/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PopulateTools/gobierto/merges","archive_url":"https://api.github.com/repos/PopulateTools/gobierto/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PopulateTools/gobierto/downloads","issues_url":"https://api.github.com/repos/PopulateTools/gobierto/issues{/number}","pulls_url":"https://api.github.com/repos/PopulateTools/gobierto/pulls{/number}","milestones_url":"https://api.github.com/repos/PopulateTools/gobierto/milestones{/number}","notifications_url":"https://api.github.com/repos/PopulateTools/gobierto/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PopulateTools/gobierto/labels{/name}","releases_url":"https://api.github.com/repos/PopulateTools/gobierto/releases{/id}","deployments_url":"https://api.github.com/repos/PopulateTools/gobierto/deployments","created_at":"2016-10-24T15:13:26Z","updated_at":"2018-08-03T12:48:20Z","pushed_at":"2018-08-03T13:56:17Z","git_url":"git://github.com/PopulateTools/gobierto.git","ssh_url":"git@github.com:PopulateTools/gobierto.git","clone_url":"https://github.com/PopulateTools/gobierto.git","svn_url":"https://github.com/PopulateTools/gobierto","homepage":"https://gobierto.es","size":22033,"stargazers_count":36,"watchers_count":36,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"archived":false,"open_issues_count":97,"license":{"key":"agpl-3.0","name":"GNU Affero General Public License v3.0","spdx_id":"AGPL-3.0","url":"https://api.github.com/licenses/agpl-3.0","node_id":"MDc6TGljZW5zZTE="},"forks":9,"open_issues":97,"watchers":36,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/PopulateTools/gobierto/pulls/1834"},"html":{"href":"https://github.com/PopulateTools/gobierto/pull/1834"},"issue":{"href":"https://api.github.com/repos/PopulateTools/gobierto/issues/1834"},"comments":{"href":"https://api.github.com/repos/PopulateTools/gobierto/issues/1834/comments"},"review_comments":{"href":"https://api.github.com/repos/PopulateTools/gobierto/pulls/1834/comments"},"review_comment":{"href":"https://api.github.com/repos/PopulateTools/gobierto/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/PopulateTools/gobierto/pulls/1834/commits"},"statuses":{"href":"https://api.github.com/repos/PopulateTools/gobierto/statuses/fe675e74b20e058619eca61ea43849e7797e274c"}},"author_association":"CONTRIBUTOR","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":2,"additions":77,"deletions":4,"changed_files":7}}
{"actor":{"display_login":"entantoencuanto"}}