mirror of
https://github.com/YunoHost/SSOwat.git
synced 2024-09-03 20:06:27 +02:00
Redirect to portal instead of 403
This commit is contained in:
parent
89be69b1e6
commit
e55c63f28d
1 changed files with 1 additions and 2 deletions
|
@ -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()
|
||||||
|
|
Loading…
Reference in a new issue