mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 09:26:54 -06:00
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
|
||||
@user.logged_out
|
||||
|
||||
if message && !message.empty?
|
||||
if message.present?
|
||||
Jobs.enqueue(
|
||||
:critical_user_email,
|
||||
type: :account_suspended,
|
||||
|
Loading…
Reference in New Issue
Block a user