def METHOD_NAME(f):
    """Decorator to check if user has read permission."""
    @wraps(f)
    def wrapper(
        self=None, name=None, version=None, schema=None, *args, **kwargs
    ):
        if not ReadSchemaPermission(schema).can():
            abort(403)
        return f(
            self=self,
            name=name,
            version=version,
            schema=schema,
            *args,
            **kwargs,
        )
    return wrapper