Shouldn't we define a velocity variable in xwikivars.vm to prevent having to check in several places this (since it's duplication of code)? We do this already for other rights check.