misc: renamed to more generic label

This commit is contained in:
Sheen Capadngan
2024-07-11 00:14:34 +08:00
parent 9832915eba
commit c501c85eb8
5 changed files with 5 additions and 5 deletions

View File

@@ -39,7 +39,7 @@ export const getDefaultOnPremFeatures = (): TFeatureSet => ({
secretApproval: false,
secretRotation: true,
caCrl: false,
adminUserDeletion: false
instanceUserManagement: false
});
export const setupLicenceRequestWithStore = (baseURL: string, refreshUrl: string, licenseKey: string) => {

View File

@@ -56,7 +56,7 @@ export type TFeatureSet = {
secretApproval: false;
secretRotation: true;
caCrl: false;
adminUserDeletion: false;
instanceUserManagement: false;
};
export type TOrgPlansTableDTO = {

View File

@@ -222,7 +222,7 @@ export const superAdminServiceFactory = ({
};
const deleteUser = async (userId: string) => {
if (!licenseService.onPremFeatures?.adminUserDeletion) {
if (!licenseService.onPremFeatures?.instanceUserManagement) {
throw new BadRequestError({
message: "Failed to delete user due to plan restriction. Upgrade to Infisical's Pro plan."
});

View File

@@ -39,5 +39,5 @@ export type SubscriptionPlan = {
trial_end: number | null;
has_used_trial: boolean;
caCrl: boolean;
adminUserDeletion: boolean;
instanceUserManagement: boolean;
};

View File

@@ -86,7 +86,7 @@ const UserPanelTable = ({
ariaLabel="update"
isDisabled={userId === id}
onClick={() => {
if (!subscription?.adminUserDeletion) {
if (!subscription?.instanceUserManagement) {
handlePopUpOpen("upgradePlan");
return;
}