mirror of
https://github.com/umami-software/umami.git
synced 2026-02-07 14:17:13 +01:00
api and lib fixes (#1643)
This commit is contained in:
parent
168283bf11
commit
13fd3ccd16
9 changed files with 30 additions and 29 deletions
|
|
@ -52,7 +52,7 @@ export function isValidToken(token, validation) {
|
|||
export async function allowQuery(req, type) {
|
||||
const { id } = req.query;
|
||||
|
||||
const { id: userId, isAdmin, shareToken } = req.auth ?? {};
|
||||
const { userId, isAdmin, shareToken } = req.auth ?? {};
|
||||
|
||||
if (isAdmin) {
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue