How to check if a user has programming rights?

Last modified by Vincent Massol on 2013/02/09

To know if the current user has programming rights:

{{velocity}}
$hasProgramming
{{/velocity}}

To know if a specific user has programming rights, you can use:

{{velocity}}
$xwiki.hasAccessLevel('programming', 'XWiki.MyUser', 'XWiki.XWikiPreferences')
{{/velocity}}
Tags: rights
Created by Vincent Massol on 2011/10/28
   

Get Connected