Skip to content

Commit

Permalink
XWIKI-20007: When sharing a page from a subwiki, global users with re…
Browse files Browse the repository at this point in the history
…stricted access get suggested

- Resolve user page reference relatively to the wiki reference it
  belongs to, when controlling access
  • Loading branch information
slauriere authored and surli committed Jul 25, 2022
1 parent 08751a2 commit a10caf1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
#if($results.size() >= 10)
#break
#end
#if ($services.security.authorization.hasAccess('view', $rawResult))
#if ($services.security.authorization.hasAccess('view', $services.model.resolveDocument($rawResult, $wikiReference)))
#set ($discard = $results.add($rawResult))
#end
#end
Expand Down

0 comments on commit a10caf1

Please sign in to comment.