def trusted_permission(f):
    """Access only by D1 infrastructure."""

    @functools.wraps(f)
    def wrapper(request, *args, **kwargs):
        trusted(request)
        return f(request, *args, **kwargs)

    return wrapper