|
@@ -75,7 +75,7 @@ export default abstract class DataModuleJob extends Job {
|
|
|
);
|
|
|
|
|
|
const permissions = modelIds.map(
|
|
|
- (modelId: string) => `${this.getPath()}.${modelId}`
|
|
|
+ (modelId: string) => `${this.getPath()}:${modelId}`
|
|
|
);
|
|
|
await this._context.assertPermissions(permissions);
|
|
|
|
|
@@ -89,7 +89,7 @@ export default abstract class DataModuleJob extends Job {
|
|
|
if (!isValidObjectId(modelId))
|
|
|
throw new Error(`Model id is invalid: ${modelId}`);
|
|
|
await this._context.assertPermission(
|
|
|
- `${this.getPath()}.${modelId}`
|
|
|
+ `${this.getPath()}:${modelId}`
|
|
|
);
|
|
|
|
|
|
return;
|