fix accounts endpoint

This commit is contained in:
Karol Wypchlo 2021-04-08 12:53:19 +02:00
parent 01e9ea57cc
commit c8e87bf2ba
1 changed files with 1 additions and 1 deletions

View File

@ -472,7 +472,7 @@ server {
return ngx.say(json.encode{authenticated = false})
end
local res = ngx.location.capture("/accounts/user/limits", { copy_all_vars = true })
local res = ngx.location.capture("/accounts/user", { copy_all_vars = true })
if res.status == ngx.HTTP_OK then
local limits = json.decode(res.body)
return ngx.say(json.encode{authenticated = limits.tier > 0})