Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

change upgrade btn based on admin

Maidul Islam46ca3856b3b0
diff --git a/frontend/src/views/SecretOverviewPage/components/SecretV2MigrationSection/SecretV2MigrationSection.tsx b/frontend/src/views/SecretOverviewPage/components/SecretV2MigrationSection/SecretV2MigrationSection.tsx
index e20d5c1117..50ed175b44 100644
--- a/frontend/src/views/SecretOverviewPage/components/SecretV2MigrationSection/SecretV2MigrationSection.tsx
+++ b/frontend/src/views/SecretOverviewPage/components/SecretV2MigrationSection/SecretV2MigrationSection.tsx
@@ -92,7 +92,6 @@ export const SecretV2MigrationSection = () => {
<p className="mb-4 leading-7 text-gray-400">
Infisical secrets engine is now 10x faster and allows you to encrypt secrets with your own
KMS. Upgrade your project to receive these improvements.
- <b>{!isAdmin && "This is an admin only operation."}</b>
</p>
<Button
onClick={() => handlePopUpOpen("migrationInfo")}
@@ -100,7 +99,7 @@ export const SecretV2MigrationSection = () => {
color="mineshaft"
isLoading={migrateProjectToV3.isLoading}
>
- Upgrade Project
+ { isAdmin ? "Upgrade Project" : "Upgrade requires admin privilege"}
</Button>
{didProjectUpgradeFailed && (
<p className="mt-2 text-sm leading-7 text-red-400">