mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 04:37:11 +01:00
Fix isAdmin check.
This commit is contained in:
parent
df84a16b95
commit
84375a582e
5 changed files with 9 additions and 7 deletions
|
|
@ -49,8 +49,7 @@ export async function allowQuery(req, type) {
|
|||
const { id } = req.query;
|
||||
|
||||
const {
|
||||
user: { id: userId },
|
||||
isAdmin,
|
||||
user: { id: userId, isAdmin },
|
||||
shareToken,
|
||||
} = req.auth;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue