debian-mirror-gitlab/lib/gitlab/pages/settings.rb
2020-11-24 15:15:51 +05:30

17 lines
328 B
Ruby

# frozen_string_literal: true
module Gitlab
module Pages
class Settings < ::SimpleDelegator
DiskAccessDenied = Class.new(StandardError)
def path
if ::Gitlab::Runtime.web_server? && !::Gitlab::Runtime.test_suite?
raise DiskAccessDenied
end
super
end
end
end
end