{"action":"opened","issue":{"url":"https://api.github.com/repos/GM-Alex/user-access-manager/issues/235","repository_url":"https://api.github.com/repos/GM-Alex/user-access-manager","labels_url":"https://api.github.com/repos/GM-Alex/user-access-manager/issues/235/labels{/name}","comments_url":"https://api.github.com/repos/GM-Alex/user-access-manager/issues/235/comments","events_url":"https://api.github.com/repos/GM-Alex/user-access-manager/issues/235/events","html_url":"https://github.com/GM-Alex/user-access-manager/issues/235","id":317450740,"number":235,"title":"How to check access for reading post into loop for \"nobody\"","user":{"login":"Trebly","id":1492375,"avatar_url":"https://avatars2.githubusercontent.com/u/1492375?v=4","gravatar_id":"","url":"https://api.github.com/users/Trebly","html_url":"https://github.com/Trebly","followers_url":"https://api.github.com/users/Trebly/followers","following_url":"https://api.github.com/users/Trebly/following{/other_user}","gists_url":"https://api.github.com/users/Trebly/gists{/gist_id}","starred_url":"https://api.github.com/users/Trebly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Trebly/subscriptions","organizations_url":"https://api.github.com/users/Trebly/orgs","repos_url":"https://api.github.com/users/Trebly/repos","events_url":"https://api.github.com/users/Trebly/events{/privacy}","received_events_url":"https://api.github.com/users/Trebly/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-04-25T01:37:38Z","updated_at":"2018-04-25T01:37:38Z","closed_at":null,"author_association":"NONE","body":"Hello Alex,\r\n\r\n__URGENT__\r\n\r\nAfter the update to the new version of UAM (from my old version 1.2.14 patched), I was thinking that everything was OK.\r\nBut in fact, the loop done (standard) by the list generator W4PL seems <strong>not to skip</strong> a post __which does not belong to the group defined with the read rights for \"nobody (visitor)\"__. The group is named as waited \"visitors\" (a post for which this group is not checked should not be visible at all by a visitor, if right have not been defined for \"nobody\"). The display for content is locked but not excerpt and summary.\r\n\r\nIn another way to explain : to not view a post excerpt into a list I had simply to not attach the post to the UAMgroup defined as allowed to be read by my \"dummy_user_visitor\". The current version seems not to work in the same exact way.\r\n\r\nPractically in my patch I was substituting for UAM check a \"no_user\" ($user = null : case of a visitor) by an __UAM_visitor__ (role defined for WP with users roles manager). Then if a post was not associated to a group with the read allowed for the role, UAM was allowing the access to the defined capabilites of the UAM_visitor.\r\n\r\nI am not sure that currently UAM functions as I just upon defined for the feature (post attached to group of the \"nobody\" role. Can you confirm ?\r\n\r\nCurrently, I have not found any way to do it. In my list of summaries or excerpts I get  All the post published. WP-UAM seems to send their 'excerpt or summary' regardless the UAM group (they are not simply fully readable 'cannot display content'). Then the user can ask \"see all\" and when the article is displayed the visitor gets the message \"you have nor he right...\"; It is exactly why I was wanting to avoid.\r\n\r\nMay be I have missed something. \r\n\r\nSo I feel that I am unable to fully hide a post from a loop (for lists) if the post is published while this was one of the features of my \"dummy_user_visitor\". There were never right of reading anything of a post by default (other special custom right could be defined).\r\n\r\n__Is-it true and planned to function as I see ?__\r\n\r\nCan you add explanations of the use of \"person\" into your wiki <a href=\"https://github.com/GM-Alex/user-access-manager/wiki\" rel=\"noopener\" target=\"_blank\"></a>\r\n\r\nBest regards\r\n\r\nTrebly\r\n"}}
{"actor":{"display_login":"Trebly"}}