Added restrictions by role for the creation of templates