def METHOD_NAME(self, request, *args, **kwargs):
    if not request.member or request.member.current_membership is None:
        messages.error(request, _("You need to be a member to use this feature."))
        return redirect("index")
    return super().METHOD_NAME(request, *args, **kwargs)