"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.docAccessResolver = void 0;
const docAccess_1 = require("../../operations/docAccess");
function docAccessResolver(global) {
    async function resolver(_, context) {
        return (0, docAccess_1.docAccess)({
            req: context.req,
            globalConfig: global,
        });
    }
    return resolver;
}
exports.docAccessResolver = docAccessResolver;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZG9jQWNjZXNzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vc3JjL2dsb2JhbHMvZ3JhcGhxbC9yZXNvbHZlcnMvZG9jQWNjZXNzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUdBLDBEQUF1RDtBQVV2RCxTQUFnQixpQkFBaUIsQ0FBQyxNQUE2QjtJQUM3RCxLQUFLLFVBQVUsUUFBUSxDQUFDLENBQUMsRUFBRSxPQUFPO1FBQ2hDLE9BQU8sSUFBQSxxQkFBUyxFQUFDO1lBQ2YsR0FBRyxFQUFFLE9BQU8sQ0FBQyxHQUFHO1lBQ2hCLFlBQVksRUFBRSxNQUFNO1NBQ3JCLENBQUMsQ0FBQztJQUNMLENBQUM7SUFFRCxPQUFPLFFBQVEsQ0FBQztBQUNsQixDQUFDO0FBVEQsOENBU0MifQ==