I think that's not the right way. You should use ACCESS_* (There is a Smarty trick to use them).