axios problems
This commit is contained in:
@@ -4,8 +4,6 @@ import { StatusCode } from "../util/types";
|
||||
export function restrictAccess(req: Request, res: Response, next: NextFunction) {
|
||||
if (req.isAuthenticated()) {
|
||||
next();
|
||||
} else {
|
||||
res.status(StatusCode.Forbidden).send({ ok: false, user: undefined })
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user