Fix delete account issue.

This commit is contained in:
Mike Cao 2020-09-16 09:25:14 -07:00 committed by GitHub
parent bde1949e8f
commit 543a66579e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,7 +9,7 @@ export default async (req, res) => {
const { id } = req.query; const { id } = req.query;
const user_id = +id; const user_id = +id;
if (is_admin) { if (!is_admin) {
return unauthorized(res); return unauthorized(res);
} }