remove avatar auth..
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
2026-07-09 11:19:09 +09:00
parent 19b8e40b72
commit 7b5923bcd5
+1 -3
View File
@@ -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)