mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Don't include admin in non-admin and vice versa
This commit is contained in:
parent
ffb0690119
commit
00c9469fba
@ -87,8 +87,10 @@ class DiscoursePluginRegistry
|
||||
self.asset_globs.each do |g|
|
||||
root, ext, options = *g
|
||||
|
||||
if each_options[:admin]
|
||||
next unless options[:admin]
|
||||
if options[:admin]
|
||||
next unless each_options[:admin]
|
||||
else
|
||||
next if each_options[:admin]
|
||||
end
|
||||
|
||||
Dir.glob("#{root}/**/*") do |f|
|
||||
|
Loading…
Reference in New Issue
Block a user