There are 2 updates.
 
 
XWiki Platform / cid:jira-generated-image-avatar-bf78443b-97de-4cb9-a243-bc4863220b4a XWIKI-7530 Open

Fix subwiki membership issues when a user's group gets added to a subwiki.

 
View issue   ยท   Add comment
 

2 updates

 
cid:jira-generated-image-avatar-28fc10d8-ea86-4ae7-9c54-859d406dbba8 Changes by Simon Urli on 12/Sep/24 10:17
 
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.