Collecting user roles in template controller.