@goplusvn/core 0.1.82 → 0.1.83

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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@goplusvn/core",
3
3
  "description": "GoPlusVN Platform Kit - ERP kernel: layout, RBAC, CRUD, multi-tenant, system pages",
4
- "version": "0.1.82",
4
+ "version": "0.1.83",
5
5
  "private": false,
6
6
  "publishConfig": {
7
7
  "registry": "https://registry.npmjs.org",
@@ -125,7 +125,7 @@ export function assertWorkspacesInScope(
125
125
  // [MODIFIED] Relaxed rule: allow users to operate in workspaces they are members of,
126
126
  // without requiring explicit 'admin' privileges over them.
127
127
  const outside = requestedWorkspaceIds.filter(
128
- (id) => !isWorkspaceAdmin(actor.scope, id) && !actor.scope.memberIds.includes(id),
128
+ (id) => !isWorkspaceAdmin(actor.scope, id) && !actor.scope.rootIds.includes(id),
129
129
  );
130
130
 
131
131
  if (outside.length > 0) {