more
This commit is contained in:
parent
a03b21107a
commit
5eb013cdf8
|
@ -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
|
||||||
|
|
Reference in New Issue