debian-mirror-gitlab/lib/gitlab/ci/status/bridge/play.rb
2021-01-30 21:13:32 +05:30

19 lines
345 B
Ruby

# 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