diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-03-06 15:14:05 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-03-06 15:14:05 +0000 |
commit | 49b16b71778148e9f9c579bf7bf69853c780c827 (patch) | |
tree | 48fe268b98795b8e2af1fa0b40ee5b67b35a4479 /app/graphql/mutations/ci/runner | |
parent | 9ad806210531e19c851a69cbcdaf9ed8bd6cb478 (diff) | |
download | gitlab-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.rb | 4 |
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) |