debian-mirror-gitlab/lib/gitlab/pages/settings.rb

18 lines
328 B
Ruby
Raw Normal View History

2020-10-24 23:57:45 +05:30
# frozen_string_literal: true
module Gitlab
module Pages
class Settings < ::SimpleDelegator
DiskAccessDenied = Class.new(StandardError)
def path
2020-11-24 15:15:51 +05:30
if ::Gitlab::Runtime.web_server? && !::Gitlab::Runtime.test_suite?
raise DiskAccessDenied
2020-10-24 23:57:45 +05:30
end
super
end
end
end
end