accounts: me va login apilar togirlandi, create_user command qoshildi

This commit is contained in:
behruz
2025-12-09 22:28:58 +05:00
parent 8b832f8e15
commit e5feb76f7d
9 changed files with 89 additions and 19 deletions

View File

@@ -1,12 +0,0 @@
# 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)