mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-06 10:28:22 +00:00
misc: renamed to more generic label
This commit is contained in:
@@ -39,7 +39,7 @@ export const getDefaultOnPremFeatures = (): TFeatureSet => ({
|
|||||||
secretApproval: false,
|
secretApproval: false,
|
||||||
secretRotation: true,
|
secretRotation: true,
|
||||||
caCrl: false,
|
caCrl: false,
|
||||||
adminUserDeletion: false
|
instanceUserManagement: false
|
||||||
});
|
});
|
||||||
|
|
||||||
export const setupLicenceRequestWithStore = (baseURL: string, refreshUrl: string, licenseKey: string) => {
|
export const setupLicenceRequestWithStore = (baseURL: string, refreshUrl: string, licenseKey: string) => {
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ export type TFeatureSet = {
|
|||||||
secretApproval: false;
|
secretApproval: false;
|
||||||
secretRotation: true;
|
secretRotation: true;
|
||||||
caCrl: false;
|
caCrl: false;
|
||||||
adminUserDeletion: false;
|
instanceUserManagement: false;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type TOrgPlansTableDTO = {
|
export type TOrgPlansTableDTO = {
|
||||||
|
|||||||
@@ -222,7 +222,7 @@ export const superAdminServiceFactory = ({
|
|||||||
};
|
};
|
||||||
|
|
||||||
const deleteUser = async (userId: string) => {
|
const deleteUser = async (userId: string) => {
|
||||||
if (!licenseService.onPremFeatures?.adminUserDeletion) {
|
if (!licenseService.onPremFeatures?.instanceUserManagement) {
|
||||||
throw new BadRequestError({
|
throw new BadRequestError({
|
||||||
message: "Failed to delete user due to plan restriction. Upgrade to Infisical's Pro plan."
|
message: "Failed to delete user due to plan restriction. Upgrade to Infisical's Pro plan."
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -39,5 +39,5 @@ export type SubscriptionPlan = {
|
|||||||
trial_end: number | null;
|
trial_end: number | null;
|
||||||
has_used_trial: boolean;
|
has_used_trial: boolean;
|
||||||
caCrl: boolean;
|
caCrl: boolean;
|
||||||
adminUserDeletion: boolean;
|
instanceUserManagement: boolean;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -86,7 +86,7 @@ const UserPanelTable = ({
|
|||||||
ariaLabel="update"
|
ariaLabel="update"
|
||||||
isDisabled={userId === id}
|
isDisabled={userId === id}
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
if (!subscription?.adminUserDeletion) {
|
if (!subscription?.instanceUserManagement) {
|
||||||
handlePopUpOpen("upgradePlan");
|
handlePopUpOpen("upgradePlan");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user