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

secure_files_helper.rb « ci « helpers « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: c4cc178f9308bfb358fa2110885693fc9387affc (plain)
1
2
3
4
5
6
7
8
9
10
11
# frozen_string_literal: true
module Ci
  module SecureFilesHelper
    def show_secure_files_setting(project, user)
      return false if user.nil?
      return false unless Gitlab.config.ci_secure_files.enabled

      user.can?(:read_secure_files, project)
    end
  end
end