Add disabled_plugins to preloadstore for login_required anonymous users (#5134)

This commit is contained in:
David Taylor 2017-09-06 11:18:58 +01:00 committed by Régis Hanol
parent a14ab48829
commit b840170f8d
1 changed files with 2 additions and 1 deletions

View File

@ -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