There is 1 update.
 
 
XWiki Platform / cid:jira-generated-image-avatar-e0b8f1be-5c0e-4197-b576-2a0fe6f2c9ff XWIKI-14787 Closed

$blacklistedSpaces are not working anymore

 
View issue   ยท   Add comment
 

1 update

 
cid:jira-generated-image-avatar-ab9be1d5-54b6-4b2f-8116-19c49ae1ceff Changes by Vincent Massol on 02/Oct/25 13:41
 
Description: Hello,

The template templates/xwikivars.vm contains the list of spaces to blacklist so that simple users don't see them in $blacklistedSpaces but it seem that this feature
doesn isn 't working anymore.
A simple user can find the page with search suggest and Ctrl+G shortcut in root CustomSpace if pages of this space is not hidden.

{code}
## ======================================================================================
## Compute list of spaces to blacklist so that simple users don't see them.
## TODO : replace this list by a hidden space feature.
## ======================================================================================
#if ($hasAdmin || $isAdvancedUser)
  #set ($blacklistedSpaces = [])
#else
  #set ($blacklistedSpaces = ['Import', 'Panels', 'Scheduler', 'Stats', 'XAppClasses', 'XAppSheets', 'XAppTemplates', 'XWiki', 'WatchCode', 'WatchSheets', 'XApp', 'WatchAdmin', 'Watch', 'ColorThemes', 'AnnotationCode'])
#end
{code}

But anyway, since nested page maybe  $blacklistedSpaces is not used anymore or maybe the "TODO : replace this list by a hidden space feature." must be replace by "Since xwiki xxx this list is replaced by hidden space feature."?

Thxs.

Pascal B