Checkpoint: Correction complète du bouton œil pour les formateurs - changement de adminProcedure à protectedProcedure pour apprenants.getById ET apprenants.getInscriptions

This commit is contained in:
Manus
2026-01-25 12:59:59 -05:00
parent 71c790e9b4
commit 935e6959ba

View File

@@ -250,7 +250,7 @@ export const appRouter = router({
}
}),
getById: adminProcedure.input(z.object({ id: z.number() })).query(async ({ input }) => {
getById: protectedProcedure.input(z.object({ id: z.number() })).query(async ({ input }) => {
return db.getApprenantById(input.id);
}),