mirror of
https://github.com/umami-software/umami.git
synced 2026-02-08 06:37:18 +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 user_id = +id;
|
||||
|
||||
if (is_admin) {
|
||||
if (!is_admin) {
|
||||
return unauthorized(res);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue