diff options
author | Louise Crow <louise.crow@gmail.com> | 2013-10-24 11:45:19 +0100 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2013-12-04 09:32:41 +0000 |
commit | 539041a4404cb918b5d87ce3b858a20fba09f35a (patch) | |
tree | 354ac37062040049461f81d09d8ca3a4f6c9d1c5 /app/controllers/request_controller.rb | |
parent | cb277edff24bd347db75e51c5bdb3e7ef5d1a498 (diff) |
Handle a banned user making batch requests.
Diffstat (limited to 'app/controllers/request_controller.rb')
-rw-r--r-- | app/controllers/request_controller.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/app/controllers/request_controller.rb b/app/controllers/request_controller.rb index 718a8aada..e249bbe5c 100644 --- a/app/controllers/request_controller.rb +++ b/app/controllers/request_controller.rb @@ -194,7 +194,11 @@ class RequestController < ApplicationController # TODO: Decide if we make batch requesters describe their undescribed requests # before being able to make a new batch request - # TODO: Add logic for checking if the user is banned + + if !authenticated_user.can_file_requests? + @details = authenticated_user.can_fail_html + render :template => 'user/banned' and return + end @batch = true if params[:submitted_new_request].nil? || params[:reedit] |