diff --git a/src/server/routes/course.ts b/src/server/routes/course.ts index 10e74e34..378d36a1 100644 --- a/src/server/routes/course.ts +++ b/src/server/routes/course.ts @@ -8,7 +8,7 @@ const courseRouter = express.Router() courseRouter.get('/', async (req: RequestWithUser, res) => { const { id } = req.user - if (!id) res.send([]) + if (!id || id === 'guest') res.send([]) const courses = (await getCourses(id)) || []