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)
|
def enqueue_staff_welcome_message(role)
|
||||||
return unless staff?
|
return unless staff?
|
||||||
|
return if role == :admin && User.real.where(admin: true).count == 1
|
||||||
|
|
||||||
Jobs.enqueue(
|
Jobs.enqueue(
|
||||||
:send_system_message,
|
:send_system_message,
|
||||||
|
|
Loading…
Reference in New Issue