2018-12-13 08:32:13 +11:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class Settings::BaseController < ApplicationController
|
2020-09-12 04:56:35 +10:00
|
|
|
layout 'admin'
|
|
|
|
|
|
|
|
before_action :authenticate_user!
|
2019-12-30 14:38:30 +11:00
|
|
|
before_action :set_cache_headers
|
2018-12-13 08:32:13 +11:00
|
|
|
|
|
|
|
private
|
|
|
|
|
2019-12-30 14:38:30 +11:00
|
|
|
def set_cache_headers
|
2023-04-20 00:07:29 +10:00
|
|
|
response.cache_control.replace(private: true, no_store: true)
|
2019-12-30 14:38:30 +11:00
|
|
|
end
|
2020-09-12 04:56:35 +10:00
|
|
|
|
|
|
|
def require_not_suspended!
|
2023-12-01 02:43:26 +11:00
|
|
|
forbidden if current_account.unavailable?
|
2020-09-12 04:56:35 +10:00
|
|
|
end
|
2018-12-13 08:32:13 +11:00
|
|
|
end
|