Checktemplatepermission205

Check the template permission for non superadmin user, with the new Permission model.