@punks/backend-entity-manager 0.0.345 → 0.0.346
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 +13 -13
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +13 -13
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -4236,6 +4236,19 @@ exports.AuthGuard = AuthGuard_1 = class AuthGuard {
|
|
|
4236
4236
|
return false;
|
|
4237
4237
|
}
|
|
4238
4238
|
}
|
|
4239
|
+
const isForAllAuthenticated = this.getIsForAllAuthenticated(context);
|
|
4240
|
+
if (isForAllAuthenticated) {
|
|
4241
|
+
const isAuthenticated = !!auth?.user;
|
|
4242
|
+
this.logger.debug(`Authorized:${isAuthenticated} -> authentication guard`, {
|
|
4243
|
+
...this.getContextInfo({
|
|
4244
|
+
context,
|
|
4245
|
+
roles: auth?.roles,
|
|
4246
|
+
user: auth?.user,
|
|
4247
|
+
permissions: auth?.permissions,
|
|
4248
|
+
}),
|
|
4249
|
+
});
|
|
4250
|
+
return isAuthenticated;
|
|
4251
|
+
}
|
|
4239
4252
|
const allowedRoles = this.getAllowedRoles(context);
|
|
4240
4253
|
if (allowedRoles) {
|
|
4241
4254
|
const isAllowed = this.isRoleMatching(allowedRoles, auth?.roles ?? []);
|
|
@@ -4268,19 +4281,6 @@ exports.AuthGuard = AuthGuard_1 = class AuthGuard {
|
|
|
4268
4281
|
return false;
|
|
4269
4282
|
}
|
|
4270
4283
|
}
|
|
4271
|
-
const isForAllAuthenticated = this.getIsForAllAuthenticated(context);
|
|
4272
|
-
if (isForAllAuthenticated) {
|
|
4273
|
-
const isAuthenticated = !!auth?.user;
|
|
4274
|
-
this.logger.debug(`Authorized:${isAuthenticated} -> authentication guard`, {
|
|
4275
|
-
...this.getContextInfo({
|
|
4276
|
-
context,
|
|
4277
|
-
roles: auth?.roles,
|
|
4278
|
-
user: auth?.user,
|
|
4279
|
-
permissions: auth?.permissions,
|
|
4280
|
-
}),
|
|
4281
|
-
});
|
|
4282
|
-
return isAuthenticated;
|
|
4283
|
-
}
|
|
4284
4284
|
const isAuthenticated = !!auth?.user;
|
|
4285
4285
|
this.logger.debug(`Authorized:${isAuthenticated} -> auth guard`, {
|
|
4286
4286
|
...this.getContextInfo({
|