We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 232e983 commit 94b73e9Copy full SHA for 94b73e9
src/app/core/permissions/ability/entity-ability.ts
@@ -66,7 +66,7 @@ export class EntityAbility extends Ability<[EntityAction, string | any]> {
66
} else if (entity.ENTITY_TYPE) {
67
return entity.ENTITY_TYPE;
68
} else {
69
- throw new Error(`${entity} is not a valid subject`);
+ throw new Error(`${JSON.stringify(entity)} is not a valid subject`);
70
}
71
72
0 commit comments