In XWiki.Results, I replaced the line
#if ($xwiki.hasAccessLevel("view", $context.user,
"${context.database}:${item}"))
with
#if ($xwiki.hasAccessLevel("view", context.user,
"${item.getWeb()}.${item.getName()}"))
and everything works.
I have no idea what the 3rd parameter in the first line means, I just
looked at what type $item has and then changed the line according to the
lucene plugin api.
So, as LuceneSearch is not the only one using XWiki.Results, this probably
breaks things, as $item not always is a lucene.SearchResult.
Any better idea to fix this? What else than WebSearch uses XWiki.Results?
Can somebody comment on this?
Thanks,
Tobias