Details
-
Bug
-
Resolution: Duplicate
-
Critical
-
None
-
2.0
-
None
-
Unknown
-
Description
I haven't been able to reproduce locally for the moment but the bug can be reproduced on xwiki.org
$xwiki.xWiki.getRightService().hasAccessLevel("view", "xwiki:XWiki.jvdrean", "dev:Main.WebHome", $context.context)
returns true, xwiki:XWiki.jvdrean has admin rights.
$xwiki.xWiki.getRightService().hasAccessLevel("view", "xwiki:XWiki.XWikiNotifications", "dev:Main.WebHome", $context.context)
returns false even though xwiki:XWiki.XWikiNotifications has view rights on dev:Main.WebHome