数据结构变化没改干净
This commit is contained in:
parent
4ef43ac3af
commit
3aa3038bbe
|
|
@ -11,7 +11,6 @@ var SyncRowStore_1 = require("./SyncRowStore");
|
|||
var action_1 = require("../actions/action");
|
||||
var lodash_1 = require("../utils/lodash");
|
||||
var env_1 = require("../compiler/env");
|
||||
var path_1 = tslib_1.__importDefault(require("path"));
|
||||
var RelationAuth = /** @class */ (function () {
|
||||
function RelationAuth(schema, actionCascadePathGraph, relationCascadePathGraph, authDeduceRelationMap, selectFreeEntities) {
|
||||
this.actionCascadePathGraph = actionCascadePathGraph;
|
||||
|
|
@ -560,9 +559,7 @@ var RelationAuth = /** @class */ (function () {
|
|||
return pathFilters;
|
||||
}
|
||||
// 说明是通过userId关联
|
||||
var contained = {};
|
||||
(0, lodash_1.set)(contained, "".concat(path_1.default, ".id"), context.getCurrentUserId());
|
||||
return contained;
|
||||
return paths.map(function (path) { return (0, lodash_1.set)({}, "".concat(path, ".id"), context.getCurrentUserId()); });
|
||||
});
|
||||
var groupFilter = (0, filter_1.combineFilters)(entity, this.schema, filters.flat(), true);
|
||||
return (0, filter_1.checkFilterContains)(entity, context, groupFilter, filter, true);
|
||||
|
|
|
|||
|
|
@ -667,9 +667,9 @@ export class RelationAuth<ED extends EntityDict & BaseEntityDict>{
|
|||
return pathFilters;
|
||||
}
|
||||
// 说明是通过userId关联
|
||||
const contained = {};
|
||||
set(contained, `${path}.id`, context.getCurrentUserId());
|
||||
return contained;
|
||||
return paths.map(
|
||||
(path) => set({}, `${path}.id`, context.getCurrentUserId())
|
||||
);
|
||||
}
|
||||
);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue