template debug fix for user role