aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/models/public_body.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/app/models/public_body.rb b/app/models/public_body.rb
index 2cf1ce8a2..1c1ddb377 100644
--- a/app/models/public_body.rb
+++ b/app/models/public_body.rb
@@ -509,6 +509,15 @@ class PublicBody < ActiveRecord::Base
return self.request_email_domain
end
+ def request_email
+ override_email = MySociety::Config.get("OVERRIDE_ALL_PUBLIC_BODY_REQUEST_EMAILS", "")
+ if override_email != ""
+ override_email
+ else
+ read_attribute(:request_email)
+ end
+ end
+
# Domain name of the request email
def request_email_domain
return PublicBody.extract_domain_from_email(self.request_email)