2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-06 10:50:21 +08:00

FIX: users are 'active' by default in imports

This commit is contained in:
Régis Hanol 2014-08-13 23:57:07 +02:00
parent ba15a6a9ea
commit c97f18dec0

View file

@ -238,6 +238,7 @@ class ImportScripts::Base
end end
opts[:email] = opts[:email].downcase opts[:email] = opts[:email].downcase
opts[:trust_level] = TrustLevel.levels[:basic] unless opts[:trust_level] opts[:trust_level] = TrustLevel.levels[:basic] unless opts[:trust_level]
opts[:active] = true
opts[:import_mode] = true opts[:import_mode] = true
u = User.new(opts) u = User.new(opts)