"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.hasBasePriv = hasBasePriv;
const includes_1 = require("../utils/includes");
/**
 * Checks for fundamental privilege required by all access checks
 * @param {IUser} user
 * @returns {boolean}
 */
function hasBasePriv(user) {
    const { privileges = [] } = user;
    return (0, includes_1.includes)(privileges, "portal:user:createItem");
}
//# sourceMappingURL=has-base-priv.js.map