clean
This commit is contained in:
parent
bbc655b3f9
commit
d130b12418
4 changed files with 14 additions and 20 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue