Skip to content

Commit

Permalink
chore: allow user deletion again
Browse files Browse the repository at this point in the history
  • Loading branch information
Miodec committed May 6, 2024
1 parent 9714ac9 commit c1e4fb3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions backend/src/api/controllers/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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([
Expand Down

0 comments on commit c1e4fb3

Please sign in to comment.