mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 04:37:11 +01:00
Update website fetch and update.
This commit is contained in:
parent
05245ca316
commit
1075325ec5
5 changed files with 27 additions and 59 deletions
|
|
@ -43,7 +43,7 @@ export function isValidToken(token, validation) {
|
|||
export async function allowQuery(req, type) {
|
||||
const { id } = req.query;
|
||||
|
||||
const { userId, isAdmin, shareToken } = req.auth ?? {};
|
||||
const { id: userId, isAdmin, shareToken } = req.auth ?? {};
|
||||
|
||||
if (isAdmin) {
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue