debian-mirror-gitlab/app/helpers/ci/secure_files_helper.rb

11 lines
212 B
Ruby
Raw Normal View History

2022-07-16 23:28:13 +05:30
# frozen_string_literal: true
module Ci
module SecureFilesHelper
def show_secure_files_setting(project, user)
return false if user.nil?
2023-03-04 22:38:38 +05:30
user.can?(:read_secure_files, project)
2022-07-16 23:28:13 +05:30
end
end
end