explain subscription mode
This commit is contained in:
parent
18822edae8
commit
d0de18fcd0
|
@ -78,7 +78,8 @@ function _M.has_subscription()
|
|||
end
|
||||
|
||||
function _M.is_auth_required()
|
||||
-- authentication is required if mode is set to "authenticated" or "subscription"
|
||||
-- authentication is required if mode is set to "authenticated"
|
||||
-- or "subscription" (require active subscription to a premium plan)
|
||||
return os.getenv("ACCOUNTS_LIMIT_ACCESS") == "authenticated" or _M.is_subscription_required()
|
||||
end
|
||||
|
||||
|
|
Reference in New Issue