summaryrefslogtreecommitdiff
path: root/lib/gitlab/ci/status/deployment/common.rb
blob: a31acf490d1ee74cec8715b6e6df16982376f706 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
module Gitlab
  module Ci
    module Status
      module Deployment
        module Common
          def has_details?
            can?(user, :read_deployment, subject)
          end

          def details_path
            project_deployment_path(subject.project, subject)
          end

          def environment_path
            project_environment_path(subject.project, subject.environment)
          end

          def has_deployment?
            true
          end
        end
      end
    end
  end
end