FIX: Don't include admin in non-admin and vice versa

This commit is contained in:
Robin Ward 2015-08-19 15:11:57 -04:00
parent ffb0690119
commit 00c9469fba
1 changed files with 4 additions and 2 deletions

View File

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