<reponame>rossi1/RES<filename>real_estate_api/supplier/permission.py
from rest_framework.permissions import BasePermission


class IsSupplier(BasePermission):
    
    def has_permission(self, request, view):
        return request.user.is_supplier
from rest_framework.permissions import BasePermission


class IsSupplier(BasePermission):
    
    def has_permission(self, request, view):
        return request.user.is_supplier