aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/request_controller.rb
diff options
context:
space:
mode:
authorLouise Crow <louise.crow@gmail.com>2012-08-23 11:34:38 +0100
committerLouise Crow <louise.crow@gmail.com>2012-08-23 11:36:52 +0100
commit95f6352e4f9cb95c93c423d0a298c51022261ea0 (patch)
tree6d92e64d53614623ea9aaf52df3902f681d95748 /app/controllers/request_controller.rb
parent452472652df3cb7e64529e0511347e7d941b9e1c (diff)
Don't error on a request to followup an external request.
Partial solution to #562.
Diffstat (limited to 'app/controllers/request_controller.rb')
-rw-r--r--app/controllers/request_controller.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/app/controllers/request_controller.rb b/app/controllers/request_controller.rb
index 60b33fe28..540ed5f3d 100644
--- a/app/controllers/request_controller.rb
+++ b/app/controllers/request_controller.rb
@@ -585,6 +585,13 @@ class RequestController < ApplicationController
return
end
+ # Test for external request
+ if @info_request.is_external?
+ @reason = 'external'
+ render :action => 'followup_bad'
+ return
+ end
+
# Force login early - this is really the "send followup" form. We want
# to make sure they're the right user first, before they start writing a
# message and wasting their time if they are not the requester.