Skip to content

Commit

Permalink
Add feature flag for showing upgrade project modal
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielHougaard committed Feb 13, 2024
1 parent a0c2573 commit 06380f3
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 06380f3

Please sign in to comment.