diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-11-26 00:09:19 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-11-26 00:09:19 +0300 |
commit | 53b40a871dc13d9c1d743b1f57fcf50eceb0a64f (patch) | |
tree | 89dcf6d8dd885bfd5d0f3f15e6a5b99e0073b671 /app/services | |
parent | d612723c35d7fdaeb8b09e91232053e04850c2ae (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/services')
-rw-r--r-- | app/services/clusters/agents/refresh_authorization_service.rb | 6 |
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 |