I fixed it by modifying the code in Menu.MenuMacro. I wrapped it in an
if($isGuest) like this.
{{velocity}}
#if ($isGuest)
#else
#set ($id = $xcontext.macro.params.id)
#set ($type = $xcontext.macro.params.type)
#set ($colorTheme = $xwiki.getUserPreference('colorTheme'))
#if ("$!colorTheme" != '')
## Make sure we use an absolute reference (see XWIKI-9672)
#set ($colorTheme = $services.model.resolveDocument($colorTheme,
$doc.documentReference))
#end
#set ($discard = $xwiki.ssx.use("$xcontext.macro.doc.prefixedFullName",
{'colorTheme': $colorTheme}))
#set ($discard = $xwiki.jsx.use("$xcontext.macro.doc.prefixedFullName"))
(% #if ("$!id" != '') id="$id"#end class="menu
menu-$!type" %)(((
$xcontext.macro.content
)))
#end
{{/velocity}}
Sorry, I don't know the scripting language well enough to do a ($isGuest) ==
false.
--
View this message in context:
http://xwiki.475771.n2.nabble.com/Menu-Application-access-for-Unregistered-…
Sent from the XWiki- Users mailing list archive at
Nabble.com.