logic for switching home pages depending on logged user role

And we have enum Role in entity.template.Role for user roles.