Aug 20 - Session tenant binding
This commit is contained in:
@@ -12,6 +12,10 @@ from app.tenancy.middleware import init_tenancy
|
||||
from app.tenancy.context import TenantContext
|
||||
from app.tenancy.gates import feature_required, quota_soft_check
|
||||
from app.tenancy.quota import check_quota, check_feature
|
||||
from app.tenancy.session_binding import (
|
||||
bind_session_tenant, enforce_session_tenant, current_tenant_id,
|
||||
tag_user_id, parse_user_id, SESSION_TENANT_KEY,
|
||||
)
|
||||
|
||||
__all__ = [
|
||||
'RoutingSession',
|
||||
@@ -21,4 +25,11 @@ __all__ = [
|
||||
'quota_soft_check',
|
||||
'check_quota',
|
||||
'check_feature',
|
||||
# MT-21
|
||||
'bind_session_tenant',
|
||||
'enforce_session_tenant',
|
||||
'current_tenant_id',
|
||||
'tag_user_id',
|
||||
'parse_user_id',
|
||||
'SESSION_TENANT_KEY',
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user