@lls/common 24.11.0-5ca60274 → 24.11.0-5d35e4be

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/lib/index.js +3 -0
  2. package/package.json +2 -2
package/lib/index.js CHANGED
@@ -175,6 +175,9 @@ var getPlanRights = ({ user, bookUri }) => {
175
175
  };
176
176
  var hasFeatureAccess = ({ feature, user, bookUri }) => {
177
177
  if (!feature) return false;
178
+ if (feature === FEATURES.FEATURE_CLASSROOM && user?.plans?.[PLANS.CLASSROOM_PLAN]?.length) {
179
+ return true;
180
+ }
178
181
  const planRights = getPlanRights({ user, bookUri });
179
182
  if (feature in planRights) return planRights[feature] ?? false;
180
183
  return false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lls/common",
3
- "version": "24.11.0-5ca60274",
3
+ "version": "24.11.0-5d35e4be",
4
4
  "description": "utils and constants shared between front and backend",
5
5
  "main": "./lib/index.js",
6
6
  "module": "./lib/index.js",
@@ -34,7 +34,7 @@
34
34
  "lodash": "4.17.21",
35
35
  "esbuild": "0.24.0",
36
36
  "typescript": "5.6.3",
37
- "@lls/vitescripts": "24.11.0-5ca60274"
37
+ "@lls/vitescripts": "24.11.0-5d35e4be"
38
38
  },
39
39
  "dependencies": {},
40
40
  "scripts": {