Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-11-26 00:09:19 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2022-11-26 00:09:19 +0300
commit53b40a871dc13d9c1d743b1f57fcf50eceb0a64f (patch)
tree89dcf6d8dd885bfd5d0f3f15e6a5b99e0073b671 /app/services/clusters/agents
parentd612723c35d7fdaeb8b09e91232053e04850c2ae (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/services/clusters/agents')
-rw-r--r--app/services/clusters/agents/refresh_authorization_service.rb6
1 files changed, 1 insertions, 5 deletions
diff --git a/app/services/clusters/agents/refresh_authorization_service.rb b/app/services/clusters/agents/refresh_authorization_service.rb
index 54b90a7304c..53b14ab54da 100644
--- a/app/services/clusters/agents/refresh_authorization_service.rb
+++ b/app/services/clusters/agents/refresh_authorization_service.rb
@@ -83,11 +83,7 @@ module Clusters
end
def allowed_projects
- if group_root_ancestor?
- root_ancestor.all_projects
- else
- ::Project.id_in(project.id)
- end
+ root_ancestor.all_projects
end
def allowed_groups