mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 07:53:49 +08:00
FIX: Do not load plugin CSS/JS assets when disabled (#8275)
Follow-up to 839916aa4901ab62fb84bcaf7d91c4354091f506 and 5bd6b70d985e2736f56d2bec6cce56bee0227b1f
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user