Actions
Bug #2752
closedJ1.7: usergroup mapping from user object and not from api
Bug #2752:
J1.7: usergroup mapping from user object and not from api
Description
The usergroup mapping is from direct user object, which is fine if a user is logged in as the user object actually exists. However, for users not logged in they do not exist and direct data from object is direct data from database which for a user not logged in that data doesn't exist. Instead of ->groups the function getAuthorisedGroups needs to be used for proper usergroup construction.
:ORIGINAL BODY:
When viewing a profile with known articles as a public user none of those articles are displayed. They DO display if you're a registered user however. This appears to be an issue with the database query in regards to checking Access to that article.
Files
Actions