|
Summary: |
Fix workspace subwiki membership issues when a user's group gets added to a workspace subwiki . |
Description: |
If a user is part of a global group (A) and that global group is added as a subgroup inside the XWikiAllGroup (WB) of a workspace subwiki (W), then that member becomes a member of the workspace W. However, the UI does not reflect that since the velocity code always checks if the current user is part of the XWikiAllGroup WB and does not recurse in possible subgroups like A, thus, the user, even if he has the rights, is not recognized as a member by the UI and is given the option to join the group.
To better fix this issue, the membership logic should be moved from velocity to the Java component. That way, all UI that will check for membership will just call the workspace subwiki service that will do all the proper checks. |
|