explain subscription mode

This commit is contained in:
Karol Wypchlo 2022-03-21 13:29:48 +01:00
parent 18822edae8
commit d0de18fcd0
No known key found for this signature in database
GPG Key ID: B515DE9EEBE241E1
1 changed files with 2 additions and 1 deletions

View File

@ -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