mirror of
https://github.com/kremalicious/umami.git
synced 2025-01-11 13:44:01 +01:00
fix auth, add pg extension (#1596)
This commit is contained in:
parent
994cf950c8
commit
ebf439c598
@ -22,7 +22,7 @@ export const filterOptions = [
|
||||
{ label: 'Count', value: 'count' },
|
||||
{ label: 'Average', value: 'avg' },
|
||||
{ label: 'Minimum', value: 'min' },
|
||||
{ label: 'Maxmimum', value: 'max' },
|
||||
{ label: 'Maximum', value: 'max' },
|
||||
{ label: 'Sum', value: 'sum' },
|
||||
];
|
||||
|
||||
|
@ -1,3 +1,5 @@
|
||||
-- CreateExtension
|
||||
CREATE EXTENSION IF NOT EXISTS pgcrypto;
|
||||
|
||||
-- AlterTable
|
||||
ALTER TABLE "account" ADD COLUMN "account_uuid" UUID NULL;
|
||||
|
@ -49,7 +49,7 @@ export async function allowQuery(req) {
|
||||
}
|
||||
|
||||
if (userId) {
|
||||
const website = await getWebsite({ id });
|
||||
const website = await getWebsite({ websiteUuid: id });
|
||||
|
||||
return website && website.userId === userId;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user