From e34887261f8d86aa4e98f4b8ccd6e57ce72c6620 Mon Sep 17 00:00:00 2001 From: Puyodead1 Date: Wed, 20 Dec 2023 03:33:28 -0500 Subject: initial progress for admin api --- src/api/middlewares/Authentication.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/api/middlewares') diff --git a/src/api/middlewares/Authentication.ts b/src/api/middlewares/Authentication.ts index 9e41b453..7b8898dc 100644 --- a/src/api/middlewares/Authentication.ts +++ b/src/api/middlewares/Authentication.ts @@ -16,8 +16,8 @@ along with this program. If not, see . */ -import { checkToken, Rights } from "@spacebar/util"; import * as Sentry from "@sentry/node"; +import { checkToken, Rights } from "@spacebar/util"; import { NextFunction, Request, Response } from "express"; import { HTTPError } from "lambert-server"; @@ -67,6 +67,8 @@ declare global { user_bot: boolean; token: { id: string; iat: number }; rights: Rights; + has_permission?: boolean; + has_right?: boolean; } } } -- cgit 1.5.1