Commit 951ce563f5aa00b709b42d899ba77e959bfe7c09
1 parent
b8920a1e
Exists in
master
and in
29 other branches
Do not send email to template users
Same as 521420587c18163c55c790a2f5241489260cea38, but before is_template is defined ActionItem2456
Showing
1 changed file
with
1 additions
and
0 deletions
Show diff stats
app/models/user.rb
@@ -291,6 +291,7 @@ class User < ActiveRecord::Base | @@ -291,6 +291,7 @@ class User < ActiveRecord::Base | ||
291 | end | 291 | end |
292 | 292 | ||
293 | def deliver_activation_code | 293 | def deliver_activation_code |
294 | + return if person.identifier =~ /person_template/ | ||
294 | User::Mailer.deliver_activation_code(self) unless self.activation_code.blank? | 295 | User::Mailer.deliver_activation_code(self) unless self.activation_code.blank? |
295 | end | 296 | end |
296 | 297 |