We created few groups on xwiki to set limited access to available resources.
We have few parent pages on xwiki which we want to have available for group 'A' but other positions should be hidden i.e. 'xwiki' with list of users, 'file manager' etc.
For 'navigation' panel we set permission only to 'view' for group A. We set the same permission also for user that belongs to this access group.
We went to parent page and also edit permissions and set the same permissions so only 'view' for this user. For other parent pages that should be hidden we forbid access to 'view'.
As result user cannot see navigation on xwiki. Instead of navigation user see loading icon.
We found error in debugger:
"TypeError: invalid 'in' operand a" in jquery.min.js:2:4041
We also found that if user is allowed to see 'xwiki' (list of users) then navigation is loaded and accessible but we don't want to allow users to see this list.