mirror of
https://github.com/kremalicious/umami.git
synced 2024-12-18 07:13:37 +01:00
Fix delete account issue.
This commit is contained in:
parent
bde1949e8f
commit
543a66579e
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user