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}}

Get Connected