mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
Add feature flag for showing upgrade project modal
This commit is contained in:
@@ -84,6 +84,7 @@ export const UpgradeProjectAlert = ({ project }: UpgradeProjectAlertProps): JSX.
|
||||
(currentStatus === null && statusIsLoading)) &&
|
||||
projectStatus?.status !== "FAILED";
|
||||
|
||||
if (process.env.NEXT_PUBLIC_SHOW_UPGRADE_PROJECT !== "true") return null;
|
||||
if (project.version !== "v1") return null;
|
||||
if (membership.role !== "admin") return null;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user