summaryrefslogtreecommitdiff
path: root/lib/gitlab/ci/status/build/common.rb
blob: c0c7c7f5b5dac6764d8eebd64a3dc8838645c8ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
module Gitlab
  module Ci
    module Status
      module Build
        module Common
          def has_details?
            can?(user, :read_build, subject)
          end

          def details_path
            project_job_path(subject.project, subject)
          end
        end
      end
    end
  end
end