mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 16:21:18 +08:00
FIX: wizard was not showing up if more than 1 system user
This commit is contained in:
@ -87,7 +87,7 @@ class Wizard
|
||||
end
|
||||
|
||||
first_admin_id = User.where(admin: true)
|
||||
.where.not(id: Discourse.system_user.id)
|
||||
.human_users
|
||||
.joins(:user_auth_tokens)
|
||||
.order('user_auth_tokens.created_at')
|
||||
.pluck(:id).first
|
||||
|
Reference in New Issue
Block a user