diff options
author | rautenberg <rautenberg@in-silico.ch> | 2012-08-16 10:06:42 +0200 |
---|---|---|
committer | rautenberg <rautenberg@in-silico.ch> | 2012-08-16 10:06:42 +0200 |
commit | 72669d908fc368fb2465d5b5b922cfad5958726f (patch) | |
tree | abb04846b2b96102b7b5482fcc5b0e6bd7c26283 | |
parent | 5e83b84dbc4091167d11195db6e8680c8d11b320 (diff) |
Add URI to Not authorized error
-rw-r--r-- | lib/authorization-helper.rb | 2 |
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) |