@kne/fastify-account 2.0.3 → 2.0.4

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.
Files changed (2) hide show
  1. package/index.js +1 -0
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -68,6 +68,7 @@ const user = fp(
68
68
  if (!(await services.admin.checkIsSuperAdmin(request.userInfo))) {
69
69
  throw Unauthorized('不能执行该操作,需要超级管理员权限');
70
70
  }
71
+ request.userInfo.isAdmin = true;
71
72
  }
72
73
  }
73
74
  ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kne/fastify-account",
3
- "version": "2.0.3",
3
+ "version": "2.0.4",
4
4
  "description": "用于用户注册登录认证.",
5
5
  "main": "index.js",
6
6
  "scripts": {