{"action":"created","issue":{"url":"https://api.github.com/repos/zikula/core/issues/3171","repository_url":"https://api.github.com/repos/zikula/core","labels_url":"https://api.github.com/repos/zikula/core/issues/3171/labels{/name}","comments_url":"https://api.github.com/repos/zikula/core/issues/3171/comments","events_url":"https://api.github.com/repos/zikula/core/issues/3171/events","html_url":"https://github.com/zikula/core/issues/3171","id":188936127,"number":3171,"title":"cant get category based permissions to work","user":{"login":"MrMontesa","id":600125,"avatar_url":"https://avatars.githubusercontent.com/u/600125?v=3","gravatar_id":"","url":"https://api.github.com/users/MrMontesa","html_url":"https://github.com/MrMontesa","followers_url":"https://api.github.com/users/MrMontesa/followers","following_url":"https://api.github.com/users/MrMontesa/following{/other_user}","gists_url":"https://api.github.com/users/MrMontesa/gists{/gist_id}","starred_url":"https://api.github.com/users/MrMontesa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MrMontesa/subscriptions","organizations_url":"https://api.github.com/users/MrMontesa/orgs","repos_url":"https://api.github.com/users/MrMontesa/repos","events_url":"https://api.github.com/users/MrMontesa/events{/privacy}","received_events_url":"https://api.github.com/users/MrMontesa/received_events","type":"User","site_admin":false},"labels":[{"id":129124,"url":"https://api.github.com/repos/zikula/core/labels/Bug","name":"Bug","color":"e102d8","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/zikula/core/milestones/21","html_url":"https://github.com/zikula/core/milestones/1.4.4","labels_url":"https://api.github.com/repos/zikula/core/milestones/21/labels","id":1876349,"number":21,"title":"1.4.4","description":"Fourth service release for 1.4.x series","creator":{"login":"craigh","id":350048,"avatar_url":"https://avatars.githubusercontent.com/u/350048?v=3","gravatar_id":"","url":"https://api.github.com/users/craigh","html_url":"https://github.com/craigh","followers_url":"https://api.github.com/users/craigh/followers","following_url":"https://api.github.com/users/craigh/following{/other_user}","gists_url":"https://api.github.com/users/craigh/gists{/gist_id}","starred_url":"https://api.github.com/users/craigh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/craigh/subscriptions","organizations_url":"https://api.github.com/users/craigh/orgs","repos_url":"https://api.github.com/users/craigh/repos","events_url":"https://api.github.com/users/craigh/events{/privacy}","received_events_url":"https://api.github.com/users/craigh/received_events","type":"User","site_admin":false},"open_issues":9,"closed_issues":110,"state":"open","created_at":"2016-07-11T16:39:55Z","updated_at":"2016-11-13T11:38:49Z","due_on":"2016-11-25T00:00:00Z","closed_at":null},"comments":1,"created_at":"2016-11-12T21:36:53Z","updated_at":"2016-11-13T13:20:45Z","closed_at":null,"body":"| Q                 | A\r\n| ----------------- | ---\r\n| Zikula Version    | 1.4.3\r\n| PHP Version       | 5.6.25\r\n\r\n### Expected behavior\r\nTrying to hide News with a certain category from being displayed to not registered visitors.\r\nOr: supress displaying Postcalendar events based on category. unregistered users should not have access to certain events which belong to the same category.\r\n\r\n### Actual behavior\r\nNews or Postcalendar events are still shown.\r\n\r\n### Steps to reproduce\r\nCreate News category\r\nadd permission rule that surpresses this news from being displayed.\r\nPermission help suggests: ZikulaCategoriesModule::Category      ID::\r\nGuite advised the following from german forum: ZikulaCategoriesModule:Main:Category ::\r\n\r\nBoth doesnt seem to work.\r\nLet me know if I can be of any help making this work\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/zikula/core/issues/comments/260185841","html_url":"https://github.com/zikula/core/issues/3171#issuecomment-260185841","issue_url":"https://api.github.com/repos/zikula/core/issues/3171","id":260185841,"user":{"login":"Guite","id":277531,"avatar_url":"https://avatars.githubusercontent.com/u/277531?v=3","gravatar_id":"","url":"https://api.github.com/users/Guite","html_url":"https://github.com/Guite","followers_url":"https://api.github.com/users/Guite/followers","following_url":"https://api.github.com/users/Guite/following{/other_user}","gists_url":"https://api.github.com/users/Guite/gists{/gist_id}","starred_url":"https://api.github.com/users/Guite/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Guite/subscriptions","organizations_url":"https://api.github.com/users/Guite/orgs","repos_url":"https://api.github.com/users/Guite/repos","events_url":"https://api.github.com/users/Guite/events{/privacy}","received_events_url":"https://api.github.com/users/Guite/received_events","type":"User","site_admin":false},"created_at":"2016-11-13T13:20:45Z","updated_at":"2016-11-13T13:20:45Z","body":"First thing to note here is that both News and PostCalendar use the `CategoryUtil::hasCategoryAccess()` method for checking if access to a certain category is given or not.\r\n\r\nhttps://github.com/zikula-modules/News/blob/master/lib/News/ResultChecker.php#L24\r\nhttps://github.com/craigh/PostCalendar/blob/master/lib/PostCalendar/Api/Event.php#L128\r\nhttps://github.com/craigh/PostCalendar/blob/master/lib/PostCalendar/Api/Event.php#L175\r\n\r\nInside this method the actual permission check is done here: https://github.com/zikula/core/blob/1.4/src/lib/util/CategoryUtil.php#L1663"}}
{"actor":{"display_login":"Guite"}}