openreplay/ee/api/chalicelib/core/license.py
Taha Yassine Kraiem 06a52e505e feat(api): fixed edition
feat(api): fixed expiration date
feat(api): fixed change name
feat(api): fixed change role
feat(api): fixed has password
feat(api): refactored edit user
feat(api): refactored edit member
2022-06-17 10:42:29 +02:00

12 lines
261 B
Python

from chalicelib.core import unlock
EDITION = 'ee'
def get_status(tenant_id):
license = unlock.get_license()
return {
"hasActivePlan": unlock.is_valid(),
"edition": EDITION,
"expirationDate": unlock.get_expiration_date()
}