summaryrefslogtreecommitdiff
path: root/app/services/clusters/agents/refresh_authorization_service.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/services/clusters/agents/refresh_authorization_service.rb')
-rw-r--r--app/services/clusters/agents/refresh_authorization_service.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/services/clusters/agents/refresh_authorization_service.rb b/app/services/clusters/agents/refresh_authorization_service.rb
index 53b14ab54da..23ececef6a1 100644
--- a/app/services/clusters/agents/refresh_authorization_service.rb
+++ b/app/services/clusters/agents/refresh_authorization_service.rb
@@ -58,7 +58,7 @@ module Clusters
if project_entries
allowed_projects.where_full_path_in(project_entries.keys).map do |project|
- { project_id: project.id, config: project_entries[project.full_path] }
+ { project_id: project.id, config: project_entries[project.full_path.downcase] }
end
end
end
@@ -70,7 +70,7 @@ module Clusters
if group_entries
allowed_groups.where_full_path_in(group_entries.keys).map do |group|
- { group_id: group.id, config: group_entries[group.full_path] }
+ { group_id: group.id, config: group_entries[group.full_path.downcase] }
end
end
end
@@ -79,7 +79,7 @@ module Clusters
def extract_config_entries(entity:)
config.dig('ci_access', entity)
&.first(AUTHORIZED_ENTITY_LIMIT)
- &.index_by { |config| config.delete('id') }
+ &.index_by { |config| config.delete('id').downcase }
end
def allowed_projects