2020-07-28 05:09:41 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module Gitlab
|
|
|
|
module Pages
|
|
|
|
class Settings < ::SimpleDelegator
|
|
|
|
DiskAccessDenied = Class.new(StandardError)
|
|
|
|
|
|
|
|
def path
|
2020-09-15 08:09:30 -04:00
|
|
|
if ::Gitlab::Runtime.web_server? && !::Gitlab::Runtime.test_suite?
|
2020-09-10 14:08:54 -04:00
|
|
|
raise DiskAccessDenied
|
2020-07-28 05:09:41 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
super
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|