debian-mirror-gitlab/lib/gitlab/ci/status/bridge/play.rb

20 lines
345 B
Ruby
Raw Normal View History

2021-01-03 14:25:43 +05:30
# 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