@meticoeus/ddd-es 0.3.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/package.json +1 -1
- package/dist/src/types.js +1 -1
- package/package.json +1 -1
package/dist/package.json
CHANGED
package/dist/src/types.js
CHANGED
|
@@ -98,7 +98,7 @@ export class AuthorizationException extends Exception {
|
|
|
98
98
|
userId;
|
|
99
99
|
permission;
|
|
100
100
|
constructor(entityName, entityId, userId, permission, code) {
|
|
101
|
-
super('AuthorizationException', `User "${userId}" missing authorization for ${entityName}:"${entityId}" for permission "${permission}".`, code ??
|
|
101
|
+
super('AuthorizationException', `User "${userId}" missing authorization for ${entityName}:"${entityId}" for permission "${permission}".`, code ?? 403);
|
|
102
102
|
this.entityName = entityName;
|
|
103
103
|
this.entityId = entityId;
|
|
104
104
|
this.userId = userId;
|