From a682c8fc91a95894a7ff3d734c0babcc53f894e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9gis=20Hanol?= Date: Wed, 19 Feb 2014 18:21:41 +0100 Subject: [PATCH] BUGFIX: do not push read-only signal to ALL sites --- .../javascripts/discourse/initializers/1_init_message_bus.js | 2 +- lib/discourse.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/discourse/initializers/1_init_message_bus.js b/app/assets/javascripts/discourse/initializers/1_init_message_bus.js index bce4c75cb92..fbf5e46f15e 100644 --- a/app/assets/javascripts/discourse/initializers/1_init_message_bus.js +++ b/app/assets/javascripts/discourse/initializers/1_init_message_bus.js @@ -28,7 +28,7 @@ Discourse.addInitializer(function() { Discourse.set("isReadOnly", Discourse.Site.currentProp("is_readonly")); - Discourse.MessageBus.subscribe("/global/read-only", function (enabled) { + Discourse.MessageBus.subscribe("/site/read-only", function (enabled) { Discourse.set("isReadOnly", enabled); if (enabled) { if (!Discourse.User.currentProp("hideReadOnlyAlert")) { diff --git a/lib/discourse.rb b/lib/discourse.rb index 1f67d21f9d4..f757c5b6f8e 100644 --- a/lib/discourse.rb +++ b/lib/discourse.rb @@ -208,7 +208,7 @@ module Discourse end def self.readonly_channel - "/global/read-only" + "/site/read-only" end end