fix(GRO-874): add requireSuperUser() to GET /api/admin/settings/logo #355

Closed
groombook-engineer[bot] wants to merge 1 commits from fix/gro-867-logo-proxy into main
+1 -1
View File
@@ -218,7 +218,7 @@ settingsRouter.post(
* Proxies the logo from S3 so the browser never sees an S3 URL.
* Returns the image bytes with proper Content-Type.
*/
settingsRouter.get("/logo", async (c) => {
settingsRouter.get("/logo", requireSuperUser(), async (c) => {
const db = getDb();
const [row] = await db.select().from(businessSettings).limit(1);