Skip to content

armgit / umami

Public Imported from GitHub
0

Umami is a privacy-first web and product analytics platform. Traffic, campaigns, behavior, conversions, and revenue in one place. No cookies, no surveillance, self-hosted or in the cloud.

Fix delete account issue.

Mike Cao543a66579e60
diff --git a/pages/api/account/[id].js b/pages/api/account/[id].js
index c87f948b1..6f9beac1b 100644
--- a/pages/api/account/[id].js
+++ b/pages/api/account/[id].js
@@ -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);
}