@go-mailer/jarvis 7.0.0 → 7.0.1

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.
@@ -52,8 +52,8 @@ const extractToken = (headers) => {
52
52
  // main
53
53
 
54
54
  const authenticateAdmin = async (request, response, next) => {
55
- const { is_admin } = request
56
- if (!is_admin) return response.status(403).json(Errors.UNAUTHORIZED)
55
+ const { is_admin, is_service_request } = request
56
+ if (!is_admin && !is_service_request) return response.status(403).json(Errors.UNAUTHORIZED)
57
57
 
58
58
  next()
59
59
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@go-mailer/jarvis",
3
- "version": "7.0.0",
3
+ "version": "7.0.1",
4
4
  "main": "index.js",
5
5
  "repository": "git@github.com:go-mailer-ltd/jarvis-node.git",
6
6
  "author": "Nathan Oguntuberu <nateoguns.work@gmail.com>",