@owox/backend 0.26.0-next-20260528092850 → 0.26.0

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.
@@ -72,13 +72,19 @@ let AccessDecisionService = AccessDecisionService_1 = class AccessDecisionServic
72
72
  this.getOwnerStatus(userId, entityType, entityId),
73
73
  this.getSharingState(entityType, entityId),
74
74
  ]);
75
- const matrixResult = this.lookupMatrix(entityType, action, role, ownerStatus, sharingState);
76
- if (!matrixResult) {
75
+ const isOwner = ownerStatus !== access_decision_types_1.OwnerStatus.NON_OWNER;
76
+ if (isOwner) {
77
+ const ownershipResult = this.lookupMatrix(entityType, action, role, ownerStatus, sharingState);
78
+ if (ownershipResult) {
79
+ return true;
80
+ }
81
+ }
82
+ const nonOwnerResult = this.lookupMatrix(entityType, action, role, access_decision_types_1.OwnerStatus.NON_OWNER, sharingState);
83
+ if (!nonOwnerResult) {
77
84
  this.logger.debug(`Access denied (matrix): user=${userId} entity=${entityType}/${entityId} action=${action} role=${role} owner=${ownerStatus} sharing=${sharingState}`);
78
85
  return false;
79
86
  }
80
- const isOwner = ownerStatus !== access_decision_types_1.OwnerStatus.NON_OWNER;
81
- if (!isOwner && projectId) {
87
+ if (projectId) {
82
88
  const roleScope = await this.contextAccessService.getRoleScope(userId, projectId);
83
89
  if (roleScope === role_scope_enum_1.RoleScope.SELECTED_CONTEXTS) {
84
90
  const hasOverlap = await this.contextAccessService.hasContextOverlap(userId, entityType, entityId, projectId);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@owox/backend",
3
- "version": "0.26.0-next-20260528092850",
3
+ "version": "0.26.0",
4
4
  "description": "OWOX Data Marts Backend - Full-stack data orchestration platform",
5
5
  "author": "OWOX",
6
6
  "license": "ELv2",
@@ -78,9 +78,9 @@
78
78
  "@nestjs/schedule": "^6.0.0",
79
79
  "@nestjs/swagger": "^11.2.0",
80
80
  "@nestjs/typeorm": "^11.0.0",
81
- "@owox/connectors": "0.26.0-next-20260528092850",
82
- "@owox/idp-protocol": "0.26.0-next-20260528092850",
83
- "@owox/internal-helpers": "0.26.0-next-20260528092850",
81
+ "@owox/connectors": "0.26.0",
82
+ "@owox/idp-protocol": "0.26.0",
83
+ "@owox/internal-helpers": "0.26.0",
84
84
  "better-sqlite3": "^12.2.0",
85
85
  "class-transformer": "^0.5.1",
86
86
  "class-validator": "^0.14.2",
@@ -139,7 +139,7 @@
139
139
  "ts-node": "^10.9.2",
140
140
  "tsconfig-paths": "^4.2.0",
141
141
  "typeorm-ts-node-commonjs": "^0.3.20",
142
- "@owox/test-utils": "5.0.0-next-20260528092850"
142
+ "@owox/test-utils": "*"
143
143
  },
144
144
  "jest": {
145
145
  "moduleFileExtensions": [