moltam89/liferay-portal — pull request #44 by lipusz (2013-02-13 08:55:15+00:00)
Title: [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

Hey Dude,

You can get more information at: http://in.liferay.com/web/global.engineering/forums/-/message_boards/message/1234322

Let me summarize the problems:
1. Create a user "target-user"
2. Create a second user "test-user"
3. Create a community site
5. Create a regular role "regular-role"
6. Create a community role "community-role"
7. Assign both user to site (Group)
8. Assign role "regular-role" to the user "test-user"
9. Assign role "community-role" to the user "target-user"
10. Assign permission "View" and "Access in Control Panel" to Users and Administration portlet to "regular-role"
11. Assign permission "View" for "Users" to "regular-role"
12. Assign permission "Update" for "Users" to "regular-role"
13. Login with user "test-user" and go to page with enterprise admin panel
14. Search for user "target-user" and click "Edit"
15. Navigate to "Sites" in user detail 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