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()