diff options
Diffstat (limited to 'app/models/project.rb')
-rw-r--r-- | app/models/project.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/app/models/project.rb b/app/models/project.rb index 0dd5e582e86..594a2fbfb90 100644 --- a/app/models/project.rb +++ b/app/models/project.rb @@ -679,11 +679,9 @@ class Project < ApplicationRecord end def has_auto_devops_implicitly_disabled? - return true unless any_runners? - auto_devops_config = first_auto_devops_config - auto_devops_config[:scope] != :project && !auto_devops_config[:status] + auto_devops_config[:scope] != :project && (!auto_devops_config[:status] || !any_runners?) end def first_auto_devops_config |