{"action":"created","issue":{"url":"https://api.github.com/repos/restrictcontentpro/restrict-content-pro/issues/365","repository_url":"https://api.github.com/repos/restrictcontentpro/restrict-content-pro","labels_url":"https://api.github.com/repos/restrictcontentpro/restrict-content-pro/issues/365/labels{/name}","comments_url":"https://api.github.com/repos/restrictcontentpro/restrict-content-pro/issues/365/comments","events_url":"https://api.github.com/repos/restrictcontentpro/restrict-content-pro/issues/365/events","html_url":"https://github.com/restrictcontentpro/restrict-content-pro/issues/365","id":136747438,"number":365,"title":"Bug in category restrictions with posts in multiple categories","user":{"login":"mindctrl","id":1254870,"avatar_url":"https://avatars.githubusercontent.com/u/1254870?v=3","gravatar_id":"","url":"https://api.github.com/users/mindctrl","html_url":"https://github.com/mindctrl","followers_url":"https://api.github.com/users/mindctrl/followers","following_url":"https://api.github.com/users/mindctrl/following{/other_user}","gists_url":"https://api.github.com/users/mindctrl/gists{/gist_id}","starred_url":"https://api.github.com/users/mindctrl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mindctrl/subscriptions","organizations_url":"https://api.github.com/users/mindctrl/orgs","repos_url":"https://api.github.com/users/mindctrl/repos","events_url":"https://api.github.com/users/mindctrl/events{/privacy}","received_events_url":"https://api.github.com/users/mindctrl/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/restrictcontentpro/restrict-content-pro/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"tannerm","id":1952618,"avatar_url":"https://avatars.githubusercontent.com/u/1952618?v=3","gravatar_id":"","url":"https://api.github.com/users/tannerm","html_url":"https://github.com/tannerm","followers_url":"https://api.github.com/users/tannerm/followers","following_url":"https://api.github.com/users/tannerm/following{/other_user}","gists_url":"https://api.github.com/users/tannerm/gists{/gist_id}","starred_url":"https://api.github.com/users/tannerm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tannerm/subscriptions","organizations_url":"https://api.github.com/users/tannerm/orgs","repos_url":"https://api.github.com/users/tannerm/repos","events_url":"https://api.github.com/users/tannerm/events{/privacy}","received_events_url":"https://api.github.com/users/tannerm/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/restrictcontentpro/restrict-content-pro/milestones/28","html_url":"https://github.com/restrictcontentpro/restrict-content-pro/milestones/2.5","labels_url":"https://api.github.com/repos/restrictcontentpro/restrict-content-pro/milestones/28/labels","id":1375221,"number":28,"title":"2.5","description":"","creator":{"login":"pippinsplugins","id":1034109,"avatar_url":"https://avatars.githubusercontent.com/u/1034109?v=3","gravatar_id":"","url":"https://api.github.com/users/pippinsplugins","html_url":"https://github.com/pippinsplugins","followers_url":"https://api.github.com/users/pippinsplugins/followers","following_url":"https://api.github.com/users/pippinsplugins/following{/other_user}","gists_url":"https://api.github.com/users/pippinsplugins/gists{/gist_id}","starred_url":"https://api.github.com/users/pippinsplugins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pippinsplugins/subscriptions","organizations_url":"https://api.github.com/users/pippinsplugins/orgs","repos_url":"https://api.github.com/users/pippinsplugins/repos","events_url":"https://api.github.com/users/pippinsplugins/events{/privacy}","received_events_url":"https://api.github.com/users/pippinsplugins/received_events","type":"User","site_admin":false},"open_issues":29,"closed_issues":4,"state":"open","created_at":"2015-10-25T13:56:14Z","updated_at":"2016-03-02T19:20:53Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2016-02-26T16:36:51Z","updated_at":"2016-03-03T23:24:04Z","closed_at":null,"body":"When a post is assigned to multiple categories and a member has access via one of those, there's a chance they get blocked due to the way we loop through and check for access. [Reference](https://github.com/restrictcontentpro/restrict-content-pro/blob/2.4.11/includes/content-filters.php#L52-L80).\r\n\r\nWe could build an array of subscription IDs and check against that after the loop instead, I think.\r\n\r\nExisted before, but related: #137 cc: @tannerm "},"comment":{"url":"https://api.github.com/repos/restrictcontentpro/restrict-content-pro/issues/comments/192017548","html_url":"https://github.com/restrictcontentpro/restrict-content-pro/issues/365#issuecomment-192017548","issue_url":"https://api.github.com/repos/restrictcontentpro/restrict-content-pro/issues/365","id":192017548,"user":{"login":"tannerm","id":1952618,"avatar_url":"https://avatars.githubusercontent.com/u/1952618?v=3","gravatar_id":"","url":"https://api.github.com/users/tannerm","html_url":"https://github.com/tannerm","followers_url":"https://api.github.com/users/tannerm/followers","following_url":"https://api.github.com/users/tannerm/following{/other_user}","gists_url":"https://api.github.com/users/tannerm/gists{/gist_id}","starred_url":"https://api.github.com/users/tannerm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tannerm/subscriptions","organizations_url":"https://api.github.com/users/tannerm/orgs","repos_url":"https://api.github.com/users/tannerm/repos","events_url":"https://api.github.com/users/tannerm/events{/privacy}","received_events_url":"https://api.github.com/users/tannerm/received_events","type":"User","site_admin":false},"created_at":"2016-03-03T23:24:03Z","updated_at":"2016-03-03T23:24:03Z","body":"@mindctrl I just pushed up a new commit to #355 that adds filters to the handling of restricted taxonomies.\r\n\r\nAs you noted the current behavior is that when any taxonomy has a restriction then the post is restricted. In the same way if any of the post's taxonomy terms are restricted then that shows the whole taxonomy as restricted.\r\n\r\nSo the current behavior is that the user must have access ALL the assigned terms for the taxonomy check to clear and the user must have access to ALL of the applicable taxonomies.\r\n\r\nSo I have introduces two filters ('rcp_restricted_taxonomy_term_match_all' & 'rcp_restricted_taxonomy_match_all') to allow the behavior to be ALL or ANY on the taxonomies and taxonomy terms.\r\n\r\nThis explanation feels much more complicated than it should be, so feel free to ping me if any of this doesn't make any sense."}}