vr-commons 1.0.79 → 1.0.80

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.
@@ -39,11 +39,6 @@ const checkUserAuthentication = (allowedRoles) => async (req, res, next) => {
39
39
  if (!user || !user.securityClearance) {
40
40
  return (0, __1.sendErrorResponse)(res, "User not found", 400);
41
41
  }
42
- // Check account moderation status
43
- const moderation = await (0, __1.checkIsUserBannedOrSuspended)(user.id);
44
- if (moderation.isRestricted) {
45
- return (0, __1.sendErrorResponse)(res, "Account restricted", 403, moderation);
46
- }
47
42
  // 🔐 Token versioning (logout all devices)
48
43
  if (user.tokenVersion !== payload.tokenVersion) {
49
44
  return (0, __1.sendErrorResponse)(res, "Session expired. Please re-verify your phone.", 401);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vr-commons",
3
- "version": "1.0.79",
3
+ "version": "1.0.80",
4
4
  "description": "Shared functions package",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",