mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-04 21:26:17 +00:00
add .? incase adminUserDeletion is empty
This commit is contained in:
@@ -222,7 +222,7 @@ export const superAdminServiceFactory = ({
|
|||||||
};
|
};
|
||||||
|
|
||||||
const deleteUser = async (userId: string) => {
|
const deleteUser = async (userId: string) => {
|
||||||
if (!licenseService.onPremFeatures.adminUserDeletion) {
|
if (!licenseService.onPremFeatures?.adminUserDeletion) {
|
||||||
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."
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user