Skip to content

Commit

Permalink
Fix delete account issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
mikecao authored Sep 16, 2020
1 parent bde1949 commit 543a665
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pages/api/account/[id].js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default async (req, res) => {
const { id } = req.query;
const user_id = +id;

if (is_admin) {
if (!is_admin) {
return unauthorized(res);
}

Expand Down

1 comment on commit 543a665

@vercel
Copy link

@vercel vercel bot commented on 543a665 Sep 16, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.