mirror of
https://github.com/umami-software/umami.git
synced 2026-02-14 09:35:36 +01:00
Fix isAdmin check.
This commit is contained in:
parent
df84a16b95
commit
84375a582e
5 changed files with 9 additions and 7 deletions
|
|
@ -8,8 +8,7 @@ export default async (req, res) => {
|
|||
await useAuth(req, res);
|
||||
|
||||
const {
|
||||
user: { id: userId },
|
||||
isAdmin,
|
||||
user: { id: userId, isAdmin },
|
||||
} = req.auth;
|
||||
|
||||
if (req.method === 'GET') {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue