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:
Diffstat (limited to 'app/finders/ci/runners_finder.rb')
-rw-r--r--app/finders/ci/runners_finder.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/finders/ci/runners_finder.rb b/app/finders/ci/runners_finder.rb
index bc1dcb3ad5f..5f03ae77338 100644
--- a/app/finders/ci/runners_finder.rb
+++ b/app/finders/ci/runners_finder.rb
@@ -74,7 +74,7 @@ module Ci
end
def project_runners
- raise Gitlab::Access::AccessDeniedError unless can?(@current_user, :admin_project, @project)
+ raise Gitlab::Access::AccessDeniedError unless can?(@current_user, :read_project_runners, @project)
@runners = ::Ci::Runner.owned_or_instance_wide(@project.id)
end