def METHOD_NAME(self, request, view, obj):
    policy = request.auth.get_policy(domain=obj)
    # If the token has no domain policy, there are no restrictions
    if policy is None:
        return True
    # Otherwise, return the requested permission
    return getattr(policy, self.perm_field)