from typing import Dict
from typing import Any


def can_local_namespace_access_route(
        local_namespace: str,
        route_obj: Dict[str, Any],
) -> bool:
    """Can this local namespace access the given route?"""
    for protection in route_obj['namespace-access']:
        if protection['namespace'] == local_namespace:
            return bool(protection['access'])
    return route_obj['default-access'] is True