123456789101112131415161718192021222324252627282930 |
- "use strict";
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.CLP = void 0;
- exports.makeSchema = makeSchema;
- class CLP {
- static allow(perms) {
- const out = {};
- for (const [perm, ops] of Object.entries(perms)) {
-
- for (const op of ops) {
- out[op] = out[op] || {};
- out[op][perm] = true;
- }
- }
- return out;
- }
- }
- exports.CLP = CLP;
- function makeSchema(className, schema) {
-
-
-
- schema.className = className;
- return schema;
- }
|