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: fca89ddab1ee9e3aaabcf5716e746de855d063bf (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?

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