@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 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?.roles ?? []);
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,