Skip to content
Snippets Groups Projects
Unverified Commit 8aa94df8 authored by Pierre-André Boissinot's avatar Pierre-André Boissinot Committed by GitHub
Browse files

Ignore les notifications par mail lors de la création d'un compte admin serveur (#1650)

* Ignore les notifications par mail lors de la création d'un compte server admin

* fix structure
parent 358df2b8
No related branches found
No related tags found
No related merge requests found
......@@ -33,6 +33,7 @@ module User::WithRegistrationContext
end
def send_notification_to_admins
return if server_admin? # ignore server admins to prevent spam during account replication wetween universities
NotificationMailer.new_registration(university, self).deliver_later
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment