Redirect to portal instead of 403

This commit is contained in:
Alexis Gavoty 2013-11-23 13:15:13 +01:00
parent 89be69b1e6
commit e55c63f28d

View file

@ -652,8 +652,7 @@ end
if is_logged_in() then if is_logged_in() then
if not has_access() then if not has_access() then
ngx.status = 403 return redirect(portal_url)
ngx.exit(403)
end end
set_headers() set_headers()
return pass() return pass()