mirror of
https://github.com/YunoHost/SSOwat.git
synced 2024-09-03 20:06:27 +02:00
Check if the user has access was done right before, no need to redo it
This commit is contained in:
parent
4f692c99d8
commit
77afe5cf09
1 changed files with 1 additions and 6 deletions
|
@ -361,18 +361,13 @@ if auth_header then
|
|||
user = hlp.authenticate(user, password)
|
||||
if user then
|
||||
logger.debug("User got authenticated through basic auth")
|
||||
|
||||
-- If user has no access to this URL, redirect him to the portal
|
||||
if not hlp.has_access(user) then
|
||||
return hlp.redirect(conf.portal_url)
|
||||
end
|
||||
|
||||
hlp.set_headers(user)
|
||||
|
||||
-- If user has no access to this URL, redirect him to the portal
|
||||
if not hlp.has_access(user) then
|
||||
return hlp.redirect(conf.portal_url)
|
||||
end
|
||||
|
||||
return hlp.pass()
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue