Unused condition

This commit is contained in:
Kay0u 2020-03-04 11:32:53 +01:00
parent af892991af
commit 97620aaac7
No known key found for this signature in database
GPG key ID: 7FF262C033518333

View file

@ -306,8 +306,7 @@ function permission_matches()
local url_matches = {}
for url, permission in pairs(conf["permissions"]) do
if string.starts(ngx.var.host..ngx.var.uri..uri_args_string(), url)
or string.starts(ngx.var.uri..uri_args_string(), url) then
if string.starts(ngx.var.host..ngx.var.uri..uri_args_string(), url) then
logger.debug("Url permission match current uri : "..url)
table.insert(url_matches, url)