From 67dc39ed036d1aa27d9f49dfddb04b51ff8710d2 Mon Sep 17 00:00:00 2001 From: Matthew Landauer Date: Fri, 22 Mar 2013 13:23:26 +1100 Subject: Only allow reporting a request when logged in --- app/controllers/request_controller.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'app/controllers/request_controller.rb') diff --git a/app/controllers/request_controller.rb b/app/controllers/request_controller.rb index 3f73fe65c..dc8db4ab1 100644 --- a/app/controllers/request_controller.rb +++ b/app/controllers/request_controller.rb @@ -701,6 +701,11 @@ class RequestController < ApplicationController def new_report_request @info_request = InfoRequest.find_by_url_title!(params[:url_title]) + if authenticated?( + :web => _("To report this request"), + :email => _("Then you can report the request '{{title}}'", :title => @info_request.title), + :email_subject => _("Report an offensive or unsuitable request")) + end end # special caching code so mime types are handled right -- cgit v1.2.3