summaryrefslogtreecommitdiff
path: root/lib/authorization-helper.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/authorization-helper.rb')
-rw-r--r--lib/authorization-helper.rb2
1 files changed, 1 insertions, 1 deletions
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)