X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/dddfa30b07b2584353df378528f84945faa3ad7f..ddff0f5816f8100154c9ae0a95147b2061097da3:/services/api/lib/fix_roles_projects.rb diff --git a/services/api/lib/fix_roles_projects.rb b/services/api/lib/fix_roles_projects.rb index 5bb013c9ad..79fea45901 100644 --- a/services/api/lib/fix_roles_projects.rb +++ b/services/api/lib/fix_roles_projects.rb @@ -13,8 +13,8 @@ def fix_roles_projects # shouldn't be anything to do at all. act_as_system_user do ActiveRecord::Base.transaction do - Group.where("group_class != 'project' or group_class is null").each do |g| - # 1) any group not group_class != project becomes a 'role' (both empty and invalid groups) + Group.where("(group_class != 'project' and group_class != 'filter') or group_class is null").each do |g| + # 1) any group not group_class != project and != filter becomes a 'role' (both empty and invalid groups) old_owner = g.owner_uuid g.owner_uuid = system_user_uuid g.group_class = 'role'