@riocrypto/common 1.0.401 → 1.0.402

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.
@@ -123,7 +123,8 @@ const authorize = (req, res, next, mongoose, authorizationTypes) => __awaiter(vo
123
123
  req.user = user;
124
124
  }
125
125
  }
126
- if (!req.currentAdminAuth && !req.currentAuth && !req.user) {
126
+ if ((!req.currentAdminAuth && !req.currentAuth && !req.user) ||
127
+ (req.currentAuth && !authorizationTypes.includes(authorization_type_1.AuthorizationType.Auth))) {
127
128
  if (missingKYC) {
128
129
  throw new missing_kyc_approval_error_1.MissingKYCApprovalError();
129
130
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.401",
3
+ "version": "1.0.402",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",