feat: removed user paywall for user management and fixed a type error

This commit is contained in:
=
2025-03-11 16:03:39 +05:30
parent 872a3fe48d
commit 719a18c218
3 changed files with 3 additions and 16 deletions
@@ -282,12 +282,6 @@ export const superAdminServiceFactory = ({
};
const deleteUser = async (userId: string) => {
if (!licenseService.onPremFeatures?.instanceUserManagement) {
throw new BadRequestError({
message: "Failed to delete user due to plan restriction. Upgrade to Infisical's Pro plan."
});
}
const user = await userDAL.deleteById(userId);
return user;
};