mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 19:56:18 +08:00
DEV: don't send staff welcome message to first admin.
This commit is contained in:
parent
0fed417439
commit
fd8ce7256c
|
@ -418,6 +418,7 @@ class User < ActiveRecord::Base
|
|||
|
||||
def enqueue_staff_welcome_message(role)
|
||||
return unless staff?
|
||||
return if role == :admin && User.real.where(admin: true).count == 1
|
||||
|
||||
Jobs.enqueue(
|
||||
:send_system_message,
|
||||
|
|
Loading…
Reference in New Issue
Block a user