How to check if a user has programming rights?
Version 1.1 by Vincent Massol on 2011/10/28
Execute the following in a page:
{{velocity}}
$hasProgramming
$hasProgramming
To know if a specific user has programming rights, you can use:
{{velocity}}
$xwiki.hasAccessLevel('programming', 'XWiki.MyUser', 'XWiki.XWikiPreferences')
{{/velocity}}
$xwiki.hasAccessLevel('programming', 'XWiki.MyUser', 'XWiki.XWikiPreferences')
{{/velocity}}