mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
add .? incase adminUserDeletion is empty
This commit is contained in:
@@ -222,7 +222,7 @@ export const superAdminServiceFactory = ({
|
||||
};
|
||||
|
||||
const deleteUser = async (userId: string) => {
|
||||
if (!licenseService.onPremFeatures.adminUserDeletion) {
|
||||
if (!licenseService.onPremFeatures?.adminUserDeletion) {
|
||||
throw new BadRequestError({
|
||||
message: "Failed to delete user due to plan restriction. Upgrade to Infisical's Pro plan."
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user