mirror of
https://github.com/umami-software/umami.git
synced 2026-02-10 23:57:12 +01:00
Updated auth to check for uuid.
This commit is contained in:
parent
8a74138e17
commit
76cad96a24
2 changed files with 6 additions and 3 deletions
|
|
@ -6,7 +6,7 @@ import { createUser, getUser, getUsers } from 'queries';
|
|||
export default async (req, res) => {
|
||||
await useAuth(req, res);
|
||||
|
||||
const { isAdmin } = req.auth;
|
||||
const { isAdmin } = req.auth.user;
|
||||
|
||||
if (!isAdmin) {
|
||||
return unauthorized(res);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue