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.

Fixed account lookup.

Mike Cao46a18f2918e4
diff --git a/lib/auth.js b/lib/auth.js
index f43f2002e..93027544f 100644
--- a/lib/auth.js
+++ b/lib/auth.js
@@ -56,7 +56,7 @@ export async function allowQuery(req, type) {
} else if (type === TYPE_ACCOUNT) {
const account = await getAccount({ accountUuid: id });
- return account && account.id === id;
+ return account && account.accountUuid === id;
}
}