Commit 8f6205d1 authored by's avatar

don't send devise notifications to the ghost user

parent cc4f77c6
......@@ -1069,6 +1069,7 @@ class User < ActiveRecord::Base
# Added according to
def send_devise_notification(notification, *args)
return true unless can?(:receive_notifications)
devise_mailer.send(notification, self, *args).deliver_later
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment