mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 07:53:49 +08:00
FIX: Don't include admin in non-admin and vice versa
This commit is contained in:
@ -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|
|
||||
|
Reference in New Issue
Block a user