Welcome to mirror list, hosted at ThFree Co, Russian Federation.

play.rb « bridge « status « ci « gitlab « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: ae00ef6c2ad0d912b9811efdded7f5f4eeca7650 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# frozen_string_literal: true

module Gitlab
  module Ci
    module Status
      module Bridge
        class Play < Status::Build::Play
          def has_action?
            can?(user, :play_job, subject)
          end

          def self.matches?(bridge, user)
            bridge.playable?
          end
        end
      end
    end
  end
end