Skip to content

Commit

Permalink
fix: Moderator language settings
Browse files Browse the repository at this point in the history
  • Loading branch information
matthe815 committed Aug 3, 2024
1 parent 1fabe6b commit a61bdab
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/pages/api/account/language.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,6 @@ async function exportData (request, response) {
.json({ error: 'Unauthorized' })
}

if (!(await userIsMod(loggedInUser))) {
return response
.status(HTTP_CODE.UNAUTHORIZED)
.json({ error: 'Unauthorized' })
}

try {
await prisma.user.update({
data: {
Expand Down

0 comments on commit a61bdab

Please sign in to comment.