From e55c63f28df87f817d1d29fb908384645a5123ee Mon Sep 17 00:00:00 2001 From: Alexis Gavoty Date: Sat, 23 Nov 2013 13:15:13 +0100 Subject: [PATCH] Redirect to portal instead of 403 --- access.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/access.lua b/access.lua index 41830af..7ac228f 100644 --- a/access.lua +++ b/access.lua @@ -652,8 +652,7 @@ end if is_logged_in() then if not has_access() then - ngx.status = 403 - ngx.exit(403) + return redirect(portal_url) end set_headers() return pass()