- This Middleware is used to check if the user is a professor
- It checks the
req.decoded.LoginType - If the user is a professor it will call the next middleware
- If the user is not a professor it will send a response with
status 401which meansunauthorized