Better handling of unathoreized requests in Ozones

This commit is contained in:
Ruben S. Montero committed 2011-11-14 09:15:51 +01:00
1 parent 535d1c06c4
commit 9f2afec526
1 file changed
+5 -1
+5 -1
View File
@@ -159,7 +159,11 @@ end
before do
unless request.path=='/login' || request.path=='/'
build_session unless authorized?
rc , msg = build_session unless authorized?
if rc == 401
halt 401
end
@OzonesServer = OzonesServer.new(session[:key])
@pr = OZones::ProxyRules.new("apache",config[:htaccess])