Welcome to mirror list, hosted at ThFree Co, Russian Federation.

artifacts_helper.rb « helpers « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 10d2714840de6e7a630122211ea1c75b30dde003 (plain)
1
2
3
4
5
6
7
8
9
10
11
# frozen_string_literal: true

module ArtifactsHelper
  def artifacts_app_data(project)
    {
      project_path: project.full_path,
      project_id: project.id,
      can_destroy_artifacts: can?(current_user, :destroy_artifacts, project).to_s
    }
  end
end