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:
@@ -87,8 +87,10 @@ class DiscoursePluginRegistry
|
|||||||
self.asset_globs.each do |g|
|
self.asset_globs.each do |g|
|
||||||
root, ext, options = *g
|
root, ext, options = *g
|
||||||
|
|
||||||
if each_options[:admin]
|
if options[:admin]
|
||||||
next unless options[:admin]
|
next unless each_options[:admin]
|
||||||
|
else
|
||||||
|
next if each_options[:admin]
|
||||||
end
|
end
|
||||||
|
|
||||||
Dir.glob("#{root}/**/*") do |f|
|
Dir.glob("#{root}/**/*") do |f|
|
||||||
|
|||||||
Reference in New Issue
Block a user