This repository has been archived on 2022-10-07. You can view files and clone it, but cannot push or open issues or pull requests.
2021-12-23 14:09:54 +00:00
|
|
|
access_by_lua_block {
|
|
|
|
-- check portal access rules and exit if access is restricted
|
|
|
|
if require("skynet.account").is_access_unauthorized() then
|
|
|
|
return require("skynet.account").exit_access_unauthorized()
|
|
|
|
end
|
2022-01-21 16:43:30 +00:00
|
|
|
|
|
|
|
-- check if portal is in subscription only mode
|
|
|
|
if require("skynet.account").is_access_forbidden() then
|
|
|
|
return require("skynet.account").exit_access_forbidden()
|
|
|
|
end
|
2021-12-23 14:09:54 +00:00
|
|
|
}
|