diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-09-12 10:12:24 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-09-12 10:12:24 +0300 |
commit | 53ba5074ff5cec24e614cd6410b6f188c4358ae4 (patch) | |
tree | e5d7db0d4d98f41dd83b57d0cc95a38a77272ab0 /lib/gitlab | |
parent | 5cc6a8839614b3e86b869f112e767ccba272e724 (diff) |
Add latest changes from gitlab-org/gitlab@16-3-stable-ee
Diffstat (limited to 'lib/gitlab')
-rw-r--r-- | lib/gitlab/ci/pipeline/chain/validate/abilities.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/gitlab/ci/pipeline/chain/validate/abilities.rb b/lib/gitlab/ci/pipeline/chain/validate/abilities.rb index b8b70a6b6b6..1939b1ff395 100644 --- a/lib/gitlab/ci/pipeline/chain/validate/abilities.rb +++ b/lib/gitlab/ci/pipeline/chain/validate/abilities.rb @@ -18,6 +18,10 @@ module Gitlab return error('Pipelines are disabled!') end + if project.import_in_progress? + return error('Import in progress') + end + unless allowed_to_create_pipeline? return error('Insufficient permissions to create a new pipeline') end |