Skip to content

Commit

Permalink
misc: display retention settings only for self-hosted/dedicated
Browse files Browse the repository at this point in the history
  • Loading branch information
sheensantoscapadngan committed Jun 26, 2024
1 parent d34b266 commit a1d01d5
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,14 @@ export const AuditLogsRetentionSection = () => {
}
};

// render only for dedicated/self-hosted instances of Infisical
if (
window.location.origin.includes("https://app.infisical.com") ||
window.location.origin.includes("https://gamma.infisical.com")
) {
return null;
}

const isAdmin = membership.roles.includes(ProjectMembershipRole.Admin);
return (
<>
Expand Down

0 comments on commit a1d01d5

Please sign in to comment.