debian-mirror-gitlab/lib/gitlab/ci/status/external/common.rb

23 lines
399 B
Ruby
Raw Normal View History

2017-08-17 22:00:37 +05:30
module Gitlab
module Ci
module Status
module External
module Common
def has_details?
subject.target_url.present? &&
can?(user, :read_commit_status, subject)
end
def details_path
subject.target_url
end
def has_action?
false
end
end
end
end
end
end