def METHOD_NAME(self, request, view):
    if view.action == "create":
        return view.token.has_votes_left
    elif view.action == "destroy":
        vote = view.get_object()
        return vote.token == view.token
    else:
        return False