mirror of
https://github.com/umami-software/umami.git
synced 2026-02-17 19:15:37 +01:00
Fix delete account issue.
This commit is contained in:
parent
bde1949e8f
commit
543a66579e
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue