From 5c28a74c7da01f04c9c54c1ea9698e6fd32f3199 Mon Sep 17 00:00:00 2001 From: Antoine D <106921102+Suboyyy@users.noreply.github.com> Date: Fri, 1 Nov 2024 18:12:24 +0100 Subject: [PATCH] fix: singe badge include firstaid logo (#257) --- src/controllers/admin/badges/generateBadges.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/controllers/admin/badges/generateBadges.ts b/src/controllers/admin/badges/generateBadges.ts index 45d148ef..9541c99d 100644 --- a/src/controllers/admin/badges/generateBadges.ts +++ b/src/controllers/admin/badges/generateBadges.ts @@ -162,6 +162,7 @@ export default [ firstName: user[0].firstname, lastName: user[0].lastname, image: `${env.front.website}/uploads/files/orga/${user[0].orga.photoFilename}.webp`, + firstaid: !!user[0].permissions.includes('firstaid'), commissionName: getCommissionName( user[0].orga.roles[mainCommissionIndex].commissionRole, user[0].orga.roles[mainCommissionIndex].commission.id,