mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-10-12 16:46:06 +08:00
chore: allow user deletion again
This commit is contained in:
parent
9714ac95c5
commit
c1e4fb3722
1 changed files with 4 additions and 3 deletions
|
@ -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([
|
||||
|
|
Loading…
Add table
Reference in a new issue