exodus-framework 2.0.971 → 2.0.973

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.
@@ -92,13 +92,13 @@ class AccessMiddleware extends _controller.default {
92
92
  envUuid = data.payload.envUuid;
93
93
  }
94
94
  } else if (tenantId) {
95
- if (!account || !exodusServiceId) {
95
+ if (!account && !exodusServiceId) {
96
96
  throw new _app.HttpError({
97
97
  message: 'Não é permitido o uso do tenantId sem uma sessão ativa',
98
98
  statusCode: _http.EHttpResponseCode.informationBlocked
99
99
  });
100
100
  }
101
- if (exodusServiceId != process.env.SECURITY_JWT_ISSUER) {
101
+ if (exodusServiceId && exodusServiceId != process.env.SECURITY_JWT_ISSUER) {
102
102
  throw new _app.HttpError({
103
103
  message: 'O token de serviço é inválido',
104
104
  statusCode: _http.EHttpResponseCode.informationBlocked
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "exodus-framework",
3
- "version": "2.0.971",
3
+ "version": "2.0.973",
4
4
  "description": "Exodus Framework",
5
5
  "author": "jhownpaixao",
6
6
  "license": "ISC",