"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.CurrentMembership = exports.CurrentUserAccess = void 0;
const common_1 = require("@nestjs/common");
exports.CurrentUserAccess = (0, common_1.createParamDecorator)((_data, ctx) => {
    const request = ctx.switchToHttp().getRequest();
    return request.userAccess ?? null;
});
exports.CurrentMembership = exports.CurrentUserAccess;
//# sourceMappingURL=current-user-access.decorator.js.map