aboutsummaryrefslogtreecommitdiffstats
path: root/app/models/info_request.rb
diff options
context:
space:
mode:
authorRobin Houston <robin.houston@gmail.com>2012-08-20 11:08:01 +0100
committerRobin Houston <robin.houston@gmail.com>2012-08-20 11:08:01 +0100
commitdae632d5b6a636ee0976151c764831015a67f3d5 (patch)
tree9f665cba9edbe096b2bbc935c7c0cabb25319448 /app/models/info_request.rb
parentba97fffe11b02275a9b3619716744dca7fe9580b (diff)
Do not send email for external requests
Diffstat (limited to 'app/models/info_request.rb')
-rw-r--r--app/models/info_request.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/info_request.rb b/app/models/info_request.rb
index e88c3a95f..ba7e44c08 100644
--- a/app/models/info_request.rb
+++ b/app/models/info_request.rb
@@ -456,7 +456,7 @@ public
if !allow
if self.handle_rejected_responses == 'bounce'
- RequestMailer.deliver_stopped_responses(self, email, raw_email_data)
+ RequestMailer.deliver_stopped_responses(self, email, raw_email_data) if !is_external?
elsif self.handle_rejected_responses == 'holding_pen'
InfoRequest.holding_pen_request.receive(email, raw_email_data, false, reason)
elsif self.handle_rejected_responses == 'blackhole'
@@ -565,7 +565,7 @@ public
self.calculate_event_states
- if self.requires_admin?
+ if self.requires_admin? && !self.is_external?
RequestMailer.deliver_requires_admin(self, set_by)
end
end