[xwiki-users] rights of current user
Sergiu Dumitriu
sergiu at xwiki.com
Tue Dec 18 12:53:55 CET 2007
Bjørnar Libæk wrote:
> Sergiu Dumitriu wrote:
>> #if($whome.hasAccessLevel("view",$context.getUser()))
>>
>>
>
> Ok, I tried this, but now the method returns true every time... Even
> when explicitly adding an access rule denying view access for a specific
> user, the method returns true.
>
This is the right method, check if you really can't view that page.
Sergiu
More information about the users
mailing list