From b840170f8da3c2fb841d55e1192a3522cbe5ae87 Mon Sep 17 00:00:00 2001 From: David Taylor Date: Wed, 6 Sep 2017 11:18:58 +0100 Subject: [PATCH] Add disabled_plugins to preloadstore for login_required anonymous users (#5134) --- app/models/site.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/models/site.rb b/app/models/site.rb index 9d90b2c1bc3..cfeae213a10 100644 --- a/app/models/site.rb +++ b/app/models/site.rb @@ -87,7 +87,8 @@ class Site filters: Discourse.filters.map(&:to_s), user_fields: UserField.all.map do |userfield| UserFieldSerializer.new(userfield, root: false, scope: guardian) - end + end, + disabled_plugins: Discourse.disabled_plugin_names }.to_json end