From 72669d908fc368fb2465d5b5b922cfad5958726f Mon Sep 17 00:00:00 2001 From: rautenberg Date: Thu, 16 Aug 2012 10:06:42 +0200 Subject: Add URI to Not authorized error --- lib/authorization-helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/authorization-helper.rb b/lib/authorization-helper.rb index b0b5374..5e2f1d5 100644 --- a/lib/authorization-helper.rb +++ b/lib/authorization-helper.rb @@ -56,7 +56,7 @@ module OpenTox elsif !env["session"] && subjectid unless authorized?(subjectid) $logger.debug "URI not authorized: clean: " + clean_uri("#{request.env['rack.url_scheme']}://#{request.env['HTTP_HOST']}#{request.env['REQUEST_URI']}").sub("http://","https://").to_s + " full: #{request.env['rack.url_scheme']}://#{request.env['HTTP_HOST']}#{request.env['REQUEST_URI']} with request: #{request.env['REQUEST_METHOD']}" - unauthorized_error "Not authorized" + unauthorized_error "Not authorized #{request.env['rack.url_scheme']}://#{request.env['HTTP_HOST']}#{request.env['REQUEST_URI']} with request: #{request.env['REQUEST_METHOD']}" end else unauthorized_error "Not authorized" unless authorized?(subjectid) -- cgit v1.2.3