accounts: me va login apilar togirlandi, create_user command qoshildi
This commit is contained in:
@@ -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)
|
||||
Reference in New Issue
Block a user