mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 21:52:43 +08:00
Allow ReadOnly to propogate up to the Ember app via Response Header
This commit is contained in:
@ -191,7 +191,7 @@ module Discourse
|
||||
end
|
||||
|
||||
def self.readonly_mode?
|
||||
!!$redis.get(readonly_mode_key)
|
||||
DiscourseRedis.recently_readonly? || !!$redis.get(readonly_mode_key)
|
||||
end
|
||||
|
||||
def self.request_refresh!
|
||||
|
Reference in New Issue
Block a user