@riocrypto/common-server 1.0.2771 → 1.0.2775

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.
@@ -20,11 +20,11 @@ const requireMinAdminRole = (req, res, next, minRole, requiredSpecialPermissions
20
20
  var _a;
21
21
  if (req.adminAuth) {
22
22
  if (adminRoleOrder.indexOf(req.adminAuth.role) < adminRoleOrder.indexOf(minRole)) {
23
- throw new common_1.GenericInputError(`Insufficient permissions. This endpoint requires at least the ${minRole} role. Contact Javier to change your access role.`);
23
+ throw new common_1.GenericInputError(`Insufficient permissions`);
24
24
  }
25
25
  if (requiredSpecialPermissions.length > 0) {
26
26
  if (!((_a = req.adminAuth.permissions) === null || _a === void 0 ? void 0 : _a.some((permission) => requiredSpecialPermissions.includes(permission)))) {
27
- throw new common_1.GenericInputError("Insufficient permissions. This endpoint requires additional special permissions. Contact Javier to change your access permissions.");
27
+ throw new common_1.GenericInputError("Insufficient permissions.");
28
28
  }
29
29
  }
30
30
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.2771",
3
+ "version": "1.0.2775",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",