"use strict";
Object.defineProperty(exports, "__esModule", {
    value: true
});
Object.defineProperty(exports, "PermissionService", {
    enumerable: true,
    get: function() {
        return PermissionService;
    }
});
const _authorizationconstants = require("../../constants/authorization.constants");
class PermissionService {
    _permissions = [];
    get permissions() {
        return this._permissions;
    }
    authorizePermission(requiredPermission, assignedPermissions) {
        return assignedPermissions.includes(requiredPermission);
    }
    async syncPermissions() {
        this._permissions = (0, _authorizationconstants.flattenPermissionDefinition)();
    }
}

//# sourceMappingURL=permission.service.js.map