mirror of
https://github.com/OneUptime/oneuptime.git
synced 2026-04-06 00:32:12 +02:00
fix(permissions): update tenantId condition for user global access permission checks
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user