@riocrypto/common 1.0.422 → 1.0.423

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.
@@ -138,7 +138,7 @@ const authorize = (req, res, next, mongoose, authorizationTypes) => __awaiter(vo
138
138
  }
139
139
  if (authorizationTypes.includes(authorization_type_1.AuthorizationType.Admin) &&
140
140
  authorizationTypes.length === 1 &&
141
- !req.currentAdminAuth) {
141
+ req.currentAuth) {
142
142
  throw new admin_only_error_1.AdminOnlyError();
143
143
  }
144
144
  throw new not_authorized_error_1.NotAuthorizedError();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.422",
3
+ "version": "1.0.423",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",