@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/esm/index.js
CHANGED
|
@@ -4221,6 +4221,19 @@ let AuthGuard = AuthGuard_1 = class AuthGuard {
|
|
|
4221
4221
|
return false;
|
|
4222
4222
|
}
|
|
4223
4223
|
}
|
|
4224
|
+
const isForAllAuthenticated = this.getIsForAllAuthenticated(context);
|
|
4225
|
+
if (isForAllAuthenticated) {
|
|
4226
|
+
const isAuthenticated = !!auth?.user;
|
|
4227
|
+
this.logger.debug(`Authorized:${isAuthenticated} -> authentication guard`, {
|
|
4228
|
+
...this.getContextInfo({
|
|
4229
|
+
context,
|
|
4230
|
+
roles: auth?.roles,
|
|
4231
|
+
user: auth?.user,
|
|
4232
|
+
permissions: auth?.permissions,
|
|
4233
|
+
}),
|
|
4234
|
+
});
|
|
4235
|
+
return isAuthenticated;
|
|
4236
|
+
}
|
|
4224
4237
|
const allowedRoles = this.getAllowedRoles(context);
|
|
4225
4238
|
if (allowedRoles) {
|
|
4226
4239
|
const isAllowed = this.isRoleMatching(allowedRoles, auth?.roles ?? []);
|
|
@@ -4253,19 +4266,6 @@ let AuthGuard = AuthGuard_1 = class AuthGuard {
|
|
|
4253
4266
|
return false;
|
|
4254
4267
|
}
|
|
4255
4268
|
}
|
|
4256
|
-
const isForAllAuthenticated = this.getIsForAllAuthenticated(context);
|
|
4257
|
-
if (isForAllAuthenticated) {
|
|
4258
|
-
const isAuthenticated = !!auth?.user;
|
|
4259
|
-
this.logger.debug(`Authorized:${isAuthenticated} -> authentication guard`, {
|
|
4260
|
-
...this.getContextInfo({
|
|
4261
|
-
context,
|
|
4262
|
-
roles: auth?.roles,
|
|
4263
|
-
user: auth?.user,
|
|
4264
|
-
permissions: auth?.permissions,
|
|
4265
|
-
}),
|
|
4266
|
-
});
|
|
4267
|
-
return isAuthenticated;
|
|
4268
|
-
}
|
|
4269
4269
|
const isAuthenticated = !!auth?.user;
|
|
4270
4270
|
this.logger.debug(`Authorized:${isAuthenticated} -> auth guard`, {
|
|
4271
4271
|
...this.getContextInfo({
|