shared_account app olib tashlandi

This commit is contained in:
behruz-dev
2025-12-07 18:10:04 +05:00
parent f0bbb4c28a
commit 8b832f8e15
24 changed files with 213 additions and 133 deletions

View File

@@ -0,0 +1,12 @@
# rest framework
from rest_framework.permissions import BasePermission
class IsTenantUser(BasePermission):
"""
Allow access only if request.tenant_user exists.
"""
def has_permission(self, request, view):
return bool(request.tenant_user)