FIX: Do not load plugin CSS/JS assets when disabled (#8275)

Follow-up to 839916aa4901ab62fb84bcaf7d91c4354091f506 and 5bd6b70d985e2736f56d2bec6cce56bee0227b1f
This commit is contained in:
David Taylor
2019-11-01 09:50:31 +00:00
committed by GitHub
parent 72aa26c8c5
commit 4312bbe1e7
2 changed files with 28 additions and 1 deletions

View File

@ -216,7 +216,7 @@ module Discourse
plugins.select do |plugin|
next if args[:include_official] == false && plugin.metadata.official?
next if args[:include_unofficial] == false && !plugin.metadata.official?
next if args[:include_disabled] == false && !plugin.enabled?
next if !args[:include_disabled] && !plugin.enabled?
true
end