mirror of
https://github.com/YunoHost/SSOwat.git
synced 2024-09-03 20:06:27 +02:00
better log message
This commit is contained in:
parent
720e35df4e
commit
6a240e1dea
1 changed files with 3 additions and 2 deletions
|
@ -310,11 +310,12 @@ function has_access(permission, user)
|
||||||
|
|
||||||
-- Public access
|
-- Public access
|
||||||
if user == nil or permission["public"] then
|
if user == nil or permission["public"] then
|
||||||
logger.debug("A visitor try to access "..ngx.var.uri)
|
user = user or "A visitor"
|
||||||
|
logger.debug(user.." tries to access "..ngx.var.uri)
|
||||||
return permission["public"]
|
return permission["public"]
|
||||||
end
|
end
|
||||||
|
|
||||||
logger.debug("User "..user.." try to access "..ngx.var.uri)
|
logger.debug("User "..user.." tries to access "..ngx.var.uri)
|
||||||
|
|
||||||
-- All user in this permission
|
-- All user in this permission
|
||||||
allowed_users = permission["users"]
|
allowed_users = permission["users"]
|
||||||
|
|
Loading…
Reference in a new issue