"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.hasUserRight = exports.USER_ROLE_LABELS = void 0;
exports.USER_ROLE_LABELS = {
    [2]: 'User',
    [1]: 'Moderator',
    [0]: 'Administrator'
};
const userRoleRights = {
    [0]: [
        0
    ],
    [1]: [
        12,
        6,
        13,
        14,
        15,
        16,
        17,
        20,
        10,
        11,
        1,
        21
    ],
    [2]: []
};
function hasUserRight(userRole, userRight) {
    const userRights = userRoleRights[userRole];
    return userRights.includes(0) || userRights.includes(userRight);
}
exports.hasUserRight = hasUserRight;
//# sourceMappingURL=user-role.js.map