fix(permissions): update tenantId condition for user global access permission checks

This commit is contained in:
Nawaz Dhandala
2026-03-08 09:41:04 +00:00
parent 781dda8c36
commit 924a107c5d
2 changed files with 4 additions and 4 deletions

View File

@@ -392,8 +392,8 @@ export default class ModelPermission {
(query as any)[tenantColumn] = props.tenantId;
} else if (
tenantColumn &&
!props.tenantId &&
props.userGlobalAccessPermission
props.userGlobalAccessPermission &&
(!props.tenantId || props.isMultiTenantRequest)
) {
/*
* for each of these projectIds,

View File

@@ -42,8 +42,8 @@ export default class TenantPermission {
(query as any)[model.getUserColumn() as string] = props.userId;
} else if (
tenantColumn &&
!props.tenantId &&
props.userGlobalAccessPermission
props.userGlobalAccessPermission &&
(!props.tenantId || props.isMultiTenantRequest)
) {
/*
* for each of these projectIds,