backend/users/permissions.py
def has_permission(self, req, _view):
        """
        This method checks if the user has permission based on the 'is_superuser' attribute.
        """
        if req.method != 'GET':
            if req.user.is_superuser and req.user.is_active:
                return True
            return False
        return True

        This method checks if the user has permission based on the 'is_superuser' attribute.
        
This method checks if the user has permission based on the 'is_superuser' attribute.
This method checks if the user has permission based on the ' is_superuser ' attribute .
def has_permission(self, req, _view):
        if req.method != 'GET':
            if req.user.is_superuser and req.user.is_active:
                return True
            return False
        return True
def has_permission ( self , req , _view ) : if req . method != 'GET' : if req . user . is_superuser and req . user . is_active : return True return False return True
This method checks if the user has permission based on the 'is_superuser' attribute.
This method checks if the user has permission based on the ' is_superuser ' attribute .
"""
        This method checks if the user has permission based on the 'is_superuser' attribute.
        """
self
req
_view