def METHOD_NAME(user, target_object):
    if not (user and user.is_authenticated):
        return False
    target_model = target_object.__class__
    if target_model not in COMMENTABLE_MODELS.values():
        return False
    if target_model == Reservation:
        if user == target_object.user:
            return True
        if target_object.resource.can_access_reservation_comments(user):
            return True
    elif target_model == CateringOrder:
        if user == target_object.reservation.user:
            return True
        if target_object.reservation.resource.can_view_reservation_catering_orders(user):
            return True
    return False