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: 30b2e12ac3bc19c267e1970d64e40396dea51c6c (plain)
1
2
3
4
5
6
7
8
9
10
# frozen_string_literal: true
module Ci
  module SecureFilesHelper
    def show_secure_files_setting(project, user)
      return false if user.nil?

      Feature.enabled?(:ci_secure_files, project) && user.can?(:read_secure_files, project)
    end
  end
end