Skip to content
Snippets Groups Projects
Commit 4a62a0f0 authored by Douwe Maan's avatar Douwe Maan
Browse files

Only send "Account was created for you" email when created by admin.

parent 529188e4
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -556,7 +556,7 @@ class User < ActiveRecord::Base
 
def post_create_hook
log_info("User \"#{self.name}\" (#{self.email}) was created")
notification_service.new_user(self, @reset_token)
notification_service.new_user(self, @reset_token) if self.created_by_id
system_hook_service.execute_hooks_for(self, :create)
end
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment