20 lines
345 B
Ruby
20 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
|