[TECHNICAL-SUPPORT] LPS-32876 Users and Organizations | Edit user page - Groups (Sites), Roles and UserGroups cannot be seen, even if the current user has VIEW permission for these resources

Hi Tamás,

I have rebased the branch and reorganized my changes.

Here is a possible use case:
1. Create a user "target-user"
2. Create a second user "test-user"
3. Create a community site "community-site"
5. Create a regular role "regular-role"
6. Create a community role "community-role"
7. Assign both users to "community-site"
8. Assign role "regular-role" to the user "test-user"
9. Assign role "community-role" to the user "target-user"
10. Define the following permissions for "regular-role"

    Go to Control Panel/Roles
    Click on "Actions" and select "Define Permissions"
    Select "Users and Organizations" under "Control Panel:Portal" scope in the "Add Permissions" dropdown

    Add permissions "Access in Control Panel" and "View"

    Select "Sites" under "Portal" scope in the "Add Permissions" dropdown

    Scroll down to "Site" section on the page

    Add permission "View"

Now, the "regular-role" has "View" resource permission for "Site" (Group model)

    Login with user "test-user" and go to Control Panel/Users and Organizations portlet
    Go to "View Users" and edit "target-user"
    Navigate to "Sites" in the right column view Result: Site is not shown

This also happens with UserGroups and Roles.
Organizations can be seen, because of the changes introduced by LPS-26228

However, as I have written at the thread, it leads to side-problem.

Please, review my changes, let me know if you need further discussion.
If it's OK, forward it to @JorgeFerrer

Thanks,
Tibor