BUGFIX: do not push read-only signal to ALL sites

This commit is contained in:
Régis Hanol 2014-02-19 18:21:41 +01:00
parent c8795d8aa4
commit a682c8fc91
2 changed files with 2 additions and 2 deletions

View File

@ -28,7 +28,7 @@ Discourse.addInitializer(function() {
Discourse.set("isReadOnly", Discourse.Site.currentProp("is_readonly")); 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); Discourse.set("isReadOnly", enabled);
if (enabled) { if (enabled) {
if (!Discourse.User.currentProp("hideReadOnlyAlert")) { if (!Discourse.User.currentProp("hideReadOnlyAlert")) {

View File

@ -208,7 +208,7 @@ module Discourse
end end
def self.readonly_channel def self.readonly_channel
"/global/read-only" "/site/read-only"
end end
end end