This commit is contained in:
Ivaylo Novakov 2022-03-14 18:23:56 +01:00
parent a03b21107a
commit 5eb013cdf8
No known key found for this signature in database
GPG Key ID: 06B9354AB08BE9C6
1 changed files with 6 additions and 6 deletions

View File

@ -32,14 +32,14 @@ access_by_lua_block {
return accounts.exit_access_unauthorized() return accounts.exit_access_unauthorized()
end end
-- -- check if portal is in subscription only mode -- check if portal is in subscription only mode
-- if accounts.is_access_forbidden() then if accounts.is_access_forbidden() then
-- return accounts.exit_access_forbidden() return accounts.exit_access_forbidden()
-- end end
--
-- -- get account limits of currently authenticated user -- -- get account limits of currently authenticated user
-- local limits = accounts.get_account_limits() -- local limits = accounts.get_account_limits()
--
-- -- apply download speed limit -- -- apply download speed limit
-- ngx.var.limit_rate = limits.download -- ngx.var.limit_rate = limits.download
end end