@riocrypto/common-server 1.0.571 → 1.0.572

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.
@@ -222,12 +222,14 @@ const authorize = (req, res, next, mongoose, authorizationTypes) => __awaiter(vo
222
222
  !req.currentPartnerAuth &&
223
223
  !req.user &&
224
224
  !req.partner &&
225
- !req.validAdminApiKey) ||
225
+ !req.validAdminApiKey &&
226
+ !authorizationTypes.includes(common_1.AuthorizationType.Public)) ||
226
227
  (!req.currentAuth &&
227
228
  !authorizationTypes.includes(common_1.AuthorizationType.Auth) &&
228
229
  !req.user &&
229
230
  !req.validAdminApiKey &&
230
- !req.currentPartnerAuth)) {
231
+ !req.currentPartnerAuth &&
232
+ !authorizationTypes.includes(common_1.AuthorizationType.Public))) {
231
233
  if (!req.user &&
232
234
  authorizationTypes.includes(common_1.AuthorizationType.UserOptional)) {
233
235
  next();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.571",
3
+ "version": "1.0.572",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",
@@ -23,7 +23,7 @@
23
23
  "dependencies": {
24
24
  "@aws-sdk/client-s3": "^3.297.0",
25
25
  "@google-cloud/storage": "^6.9.5",
26
- "@riocrypto/common": "^1.0.556",
26
+ "@riocrypto/common": "^1.0.557",
27
27
  "@types/express": "^4.17.13",
28
28
  "axios": "^0.27.2",
29
29
  "ccxt": "^3.0.30",