@punks/backend-entity-manager 0.0.182 → 0.0.185
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/cjs/index.js +1 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/platforms/nest/__test__/server/infrastructure/authentication/providers/roles/index.d.ts +11 -2
- package/dist/cjs/types/platforms/nest/extensions/authentication/abstractions/index.d.ts +4 -1
- package/dist/cjs/types/platforms/nest/extensions/authentication/resolver/index.d.ts +2 -2
- package/dist/cjs/types/platforms/nest/extensions/authentication/services/authentication/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/platforms/nest/__test__/server/infrastructure/authentication/providers/roles/index.d.ts +11 -2
- package/dist/esm/types/platforms/nest/extensions/authentication/abstractions/index.d.ts +4 -1
- package/dist/esm/types/platforms/nest/extensions/authentication/resolver/index.d.ts +2 -2
- package/dist/esm/types/platforms/nest/extensions/authentication/services/authentication/index.d.ts +1 -1
- package/dist/index.d.ts +7 -4
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -2646,7 +2646,7 @@ exports.AuthGuard = AuthGuard_1 = class AuthGuard {
|
|
|
2646
2646
|
}
|
|
2647
2647
|
const allowedPermissions = this.getAllowedPermissions(context);
|
|
2648
2648
|
if (allowedPermissions) {
|
|
2649
|
-
const isAllowed = this.isPermissionMatching(allowedPermissions, auth?.
|
|
2649
|
+
const isAllowed = this.isPermissionMatching(allowedPermissions, auth?.permissions ?? []);
|
|
2650
2650
|
this.logger.debug(`Authorized:${isAllowed} -> authorization permission guard`, {
|
|
2651
2651
|
...this.getContextInfo({
|
|
2652
2652
|
context,
|