How to check if a user has programming rights?

Version 2.1 by Vincent Massol on 2011/10/28

Execute the following in a page:

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