diff options
Diffstat (limited to 'app/helpers/ci/secure_files_helper.rb')
-rw-r--r-- | app/helpers/ci/secure_files_helper.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/helpers/ci/secure_files_helper.rb b/app/helpers/ci/secure_files_helper.rb index fca89ddab1e..c4cc178f930 100644 --- a/app/helpers/ci/secure_files_helper.rb +++ b/app/helpers/ci/secure_files_helper.rb @@ -3,6 +3,7 @@ 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 |