From 7b5923bcd52105fbfad808230c24ee00cdb0e952 Mon Sep 17 00:00:00 2001 From: chyoo Date: Thu, 9 Jul 2026 11:19:09 +0900 Subject: [PATCH] remove avatar auth.. --- src/auth/routes.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/auth/routes.ts b/src/auth/routes.ts index 862f0ac..8dddb98 100644 --- a/src/auth/routes.ts +++ b/src/auth/routes.ts @@ -662,9 +662,7 @@ authRoutes.get('/profile/avatar', authRequired, async (c) => { return c.body(new Uint8Array(image.data!)) }) -authRoutes.get('/users/:userId/avatar', authRequired, async (c) => { - if (!requireAdmin(c.get('user'))) return c.json({ error: 'forbidden' }, 403) - +authRoutes.get('/users/:userId/avatar', async (c) => { const userId = c.req.param('userId') const image = await findUserProfileImage(userId) if (!image) return c.body(null, 404)