11 lines
259 B
Ruby
11 lines
259 B
Ruby
|
# 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
|