@riocrypto/common-server 1.0.513 → 1.0.515

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.
@@ -167,7 +167,8 @@ const authorize = (req, res, next, mongoose, authorizationTypes) => __awaiter(vo
167
167
  !req.validAdminApiKey) ||
168
168
  (!req.currentAuth &&
169
169
  !authorizationTypes.includes(common_1.AuthorizationType.Auth) &&
170
- !req.user)) {
170
+ !req.user &&
171
+ !req.validAdminApiKey)) {
171
172
  if (req.currentAdminAuth &&
172
173
  authorizationTypes.includes(common_1.AuthorizationType.Admin)) {
173
174
  next();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.513",
3
+ "version": "1.0.515",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",