diff --git a/lib/gitlab/ci/status/build/scheduled.rb b/lib/gitlab/ci/status/build/scheduled.rb index c6713f0d633..7b46c81fb5d 100644 --- a/lib/gitlab/ci/status/build/scheduled.rb +++ b/lib/gitlab/ci/status/build/scheduled.rb @@ -17,7 +17,7 @@ module Gitlab end def self.matches?(build, user) - build.scheduled? + build.scheduled? && build.scheduled_at end private