Skip to content

Conversation

@sjorobekov
Copy link
Contributor

No description provided.

@sjorobekov sjorobekov marked this pull request as ready for review November 24, 2025 10:45

const checkEntryTenantEnabled = !isPrivateRoute && !onlyPublic && !onlyMirrored && !isEmbedding;
const checkEntryTenantEnabled =
!isPrivateOrAuditRoute && !onlyPublic && !onlyMirrored && !isEmbedding;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to check tenant for audit routes.

edit: iamPermissions.edit ?? false,
admin: iamPermissions.admin ?? false,
};
} else if (isAuditRoute) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's move this block before if (iamPermissions !== undefined). iamPermissions is undefined in this case, but this order makes more sense.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants