summaryrefslogtreecommitdiff
path: root/app/graphql/mutations/ci/runner
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-03-06 15:14:05 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2023-03-06 15:14:05 +0000
commit49b16b71778148e9f9c579bf7bf69853c780c827 (patch)
tree48fe268b98795b8e2af1fa0b40ee5b67b35a4479 /app/graphql/mutations/ci/runner
parent9ad806210531e19c851a69cbcdaf9ed8bd6cb478 (diff)
downloadgitlab-ce-49b16b71778148e9f9c579bf7bf69853c780c827.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/graphql/mutations/ci/runner')
-rw-r--r--app/graphql/mutations/ci/runner/create.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/graphql/mutations/ci/runner/create.rb b/app/graphql/mutations/ci/runner/create.rb
index 1cdee560ca8..98300ee4c38 100644
--- a/app/graphql/mutations/ci/runner/create.rb
+++ b/app/graphql/mutations/ci/runner/create.rb
@@ -16,9 +16,9 @@ module Mutations
description: 'Runner after mutation.'
def resolve(**args)
- if Feature.disabled?(:create_runner_workflow)
+ if Feature.disabled?(:create_runner_workflow_for_admin, current_user)
raise Gitlab::Graphql::Errors::ResourceNotAvailable,
- '`create_runner_workflow` feature flag is disabled.'
+ '`create_runner_workflow_for_admin` feature flag is disabled.'
end
create_runner(args)