chore: allow user deletion again

This commit is contained in:
Miodec 2024-05-06 13:35:54 +02:00
parent 9714ac95c5
commit c1e4fb3722

View file

@ -180,9 +180,10 @@ export async function deleteUser(
const userInfo = await UserDAL.getUser(uid, "delete user");
if (userInfo.banned) {
throw new MonkeyError(403, "Banned users cannot delete their account");
}
// gdpr goes brr, find a different way
// if (userInfo.banned) {
// throw new MonkeyError(403, "Banned users cannot delete their account");
// }
//cleanup database
await Promise.all([