mirror of
https://github.com/YunoHost/SSOwat.git
synced 2024-09-03 20:06:27 +02:00
[fix] check users ACL on http basic auth
This commit is contained in:
parent
442147bbbe
commit
c019f9d208
1 changed files with 6 additions and 0 deletions
|
@ -373,6 +373,12 @@ if auth_header then
|
||||||
user = hlp.authenticate(user, password)
|
user = hlp.authenticate(user, password)
|
||||||
if user then
|
if user then
|
||||||
hlp.set_headers(user)
|
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()
|
return hlp.pass()
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue