DEV: user suspension use .present? (#12676)
As suggested by eviltrout in https://github.com/discourse/discourse/pull/12666
This commit is contained in:
parent
2081b6e5c9
commit
d837ad8386
|
@ -124,7 +124,7 @@ class Admin::UsersController < Admin::AdminController
|
||||||
end
|
end
|
||||||
@user.logged_out
|
@user.logged_out
|
||||||
|
|
||||||
if message && !message.empty?
|
if message.present?
|
||||||
Jobs.enqueue(
|
Jobs.enqueue(
|
||||||
:critical_user_email,
|
:critical_user_email,
|
||||||
type: :account_suspended,
|
type: :account_suspended,
|
||||||
|
|
Loading…
Reference in New Issue