This commit is contained in:
waveringana 2022-12-06 13:34:43 +00:00
parent bbc655b3f9
commit d130b12418
4 changed files with 14 additions and 20 deletions

View file

@ -6,7 +6,6 @@ import {db, createUser} from "../db";
const router: Router = express.Router();
const adminCheck: Middleware = (req: Request, res: Response, next: NextFunction) => {
//@ts-ignore
if (!req.user)
return res.status(403).send("You are not authorized to perform this action");
else {