mirror of
https://github.com/umami-software/umami.git
synced 2026-02-05 21:27:20 +01:00
Converted admin, auth, me and realtime routes.
This commit is contained in:
parent
6c9f1ad06b
commit
5205551ca8
25 changed files with 346 additions and 7 deletions
|
|
@ -17,7 +17,7 @@ export async function GET(request: Request, { params }: { params: Promise<{ user
|
|||
|
||||
const { userId } = await params;
|
||||
|
||||
if (!auth.user.isAdmin && (!userId || auth.user.id !== userId)) {
|
||||
if (auth.user.id !== userId && !auth.user.isAdmin) {
|
||||
return unauthorized();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue