Allow access in portail in other domain than main domain

This commit is contained in:
Josué Tille 2019-05-17 22:42:52 +02:00
parent 6670ffef65
commit b0756e2494
No known key found for this signature in database
GPG key ID: D5E068C6DFA8681D

View file

@ -65,7 +65,7 @@ end
-- If the URL matches the portal URL, serve a portal file or proceed to a -- If the URL matches the portal URL, serve a portal file or proceed to a
-- portal operation -- portal operation
-- --
if ngx.var.host == conf["portal_domain"] if (ngx.var.host == conf["portal_domain"] or hlp.is_logged_in())
and hlp.string.starts(ngx.var.uri, string.sub(conf["portal_path"], 1, -2)) and hlp.string.starts(ngx.var.uri, string.sub(conf["portal_path"], 1, -2))
then then