@rspress-theme-anatole/theme-default 0.7.53 → 0.7.54

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/dist/bundle.js +2 -2
  2. package/package.json +3 -3
package/dist/bundle.js CHANGED
@@ -395,8 +395,8 @@ function isItemLocked(item, userContext) {
395
395
  const requiredRoles = normalizeRoleList(item?.roles);
396
396
  // No roles required = public content (not locked)
397
397
  if (!requiredRoles.length) return false;
398
- // User is authenticated with valid userId = unlocked (regardless of roles)
399
- if (userContext?.isAuthenticated && userContext?.userId) return false;
398
+ // User is authenticated = unlocked (regardless of roles)
399
+ if (userContext?.isAuthenticated) return false;
400
400
  // Has roles required but user is not authenticated = locked
401
401
  return true;
402
402
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@rspress-theme-anatole/theme-default",
3
3
  "author": "Anatole Tong",
4
- "version": "0.7.53",
4
+ "version": "0.7.54",
5
5
  "license": "MIT",
6
6
  "sideEffects": [
7
7
  "*.css",
@@ -21,8 +21,8 @@
21
21
  "types": "./dist/bundle.d.ts",
22
22
  "dependencies": {
23
23
  "@mdx-js/react": "2.3.0",
24
- "@rspress-theme-anatole/rspress-plugin-mermaid": "0.7.53",
25
- "@rspress-theme-anatole/shared": "0.7.53",
24
+ "@rspress-theme-anatole/rspress-plugin-mermaid": "0.7.54",
25
+ "@rspress-theme-anatole/shared": "0.7.54",
26
26
  "@rspress/runtime": "1.43.8",
27
27
  "body-scroll-lock": "4.0.0-beta.0",
28
28
  "copy-to-clipboard": "^3.3.3",