@medusajs/rbac 2.22.7 → 2.22.8-preview-20261118094528

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 (3) hide show
  1. package/AGENTS.md +1 -1
  2. package/README.md +1 -1
  3. package/package.json +4 -4
package/AGENTS.md CHANGED
@@ -4,7 +4,7 @@ Role-based access control module: stores roles, policies (`resource:operation` p
4
4
 
5
5
  ## Using this package
6
6
 
7
- - Not registered by default: applications add `{ resolve: "@medusajs/medusa/rbac" }` to `modules` in `medusa-config.ts`. Everything RBAC (the `authorize` middleware, the `/rbac/*` routes, role assignment on users and invites, response field filtering) switches on when the module is installed and is a no-op otherwise.
7
+ - Self-hosted, it's opt-in: applications add `{ resolve: "@medusajs/medusa/rbac" }` to `modules` in `medusa-config.ts`. On Medusa Cloud, `defineConfig` adds it by default when the license covers `rbac`; a user entry for the module (own `options`, `disable: true`) replaces the default. Everything RBAC (the `authorize` middleware, the `/rbac/*` routes, role assignment on users and invites, response field filtering) switches on when the module is installed and is a no-op otherwise.
8
8
  - It is a licensed module: the loader (`packages/core/modules-sdk/src/loaders/utils/load-internal.ts`, `LICENSED_MODULES`) only loads it when the license covers `LicenseFeature.RBAC`.
9
9
  - One module option, `actors`, says how each authenticated actor type reaches the entities that can hold role assignments for it (its grantees), and no providers. `user` always keeps `{ entity: "user", path: "id" }` as a grantee; configured grantees are added to it. Secret API keys authenticate as `api-key` and by default act with the roles of the user that created them. Set `actor_entity` when the actor type is not the name of a `query.graph` entity.
10
10
 
package/README.md CHANGED
@@ -43,7 +43,7 @@ RBAC (role-based access control) Module for Medusa: manages roles, policies, rol
43
43
  | Package | `@medusajs/rbac` |
44
44
  | Type | Commerce Module |
45
45
  | Module key | `Modules.RBAC` (`"rbac"`) |
46
- | Registered by default | No |
46
+ | Registered by default | No. On Medusa Cloud, yes when the license covers `rbac` |
47
47
  | Import from | `@medusajs/medusa/rbac` |
48
48
 
49
49
  ## Features
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@medusajs/rbac",
3
- "version": "2.22.7",
3
+ "version": "2.22.8-preview-20261118094528",
4
4
  "description": "Medusa RBAC module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -43,10 +43,10 @@
43
43
  "orm:cache:clear": "MIKRO_ORM_CLI_CONFIG=./mikro-orm.config.dev.ts MIKRO_ORM_ALLOW_GLOBAL_CLI=true medusa-mikro-orm cache:clear"
44
44
  },
45
45
  "devDependencies": {
46
- "@medusajs/framework": "2.22.7",
47
- "@medusajs/test-utils": "2.22.7"
46
+ "@medusajs/framework": "2.22.8-preview-20261118094528",
47
+ "@medusajs/test-utils": "2.22.8-preview-20261118094528"
48
48
  },
49
49
  "peerDependencies": {
50
- "@medusajs/framework": "2.22.7"
50
+ "@medusajs/framework": "2.22.8-preview-20261118094528"
51
51
  }
52
52
  }