Made delete restrictions for groups and templates consistent