How to check if a user has programming rights??

Version 4.1 by Vincent Massol on 2012/03/24

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