From 9b6f14354ed076e7c8c2214c315c7c4dfd71b166 Mon Sep 17 00:00:00 2001 From: Mateo Souto Date: Fri, 14 Aug 2026 18:15:02 +0200 Subject: [PATCH 1/2] chore: update names --- backend/fixtures/production/committees.json | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/backend/fixtures/production/committees.json b/backend/fixtures/production/committees.json index 7c7ff2a..6045be7 100644 --- a/backend/fixtures/production/committees.json +++ b/backend/fixtures/production/committees.json @@ -135,7 +135,7 @@ }, { "_id": 1000, - "name": "Logistikk", + "name": "Logistikk (komité)", "slug": "logistikk", "access_roles": [], "accepts_admissions": true, @@ -143,7 +143,7 @@ }, { "_id": 1001, - "name": "Økonomi", + "name": "Økonomi (komité)", "slug": "okonomi", "access_roles": [], "accepts_admissions": true, @@ -151,7 +151,7 @@ }, { "_id": 1002, - "name": "Marked", + "name": "Marked (komité)", "slug": "marked", "access_roles": [], "accepts_admissions": true, @@ -159,7 +159,7 @@ }, { "_id": 1003, - "name": "Frivillig", + "name": "Frivillig (under arrangement)", "slug": "frivillig", "access_roles": [], "accepts_admissions": true, @@ -167,7 +167,7 @@ }, { "_id": 1004, - "name": "Sport", + "name": "Sport (komité)", "slug": "sport", "access_roles": [], "accepts_admissions": true, @@ -175,7 +175,7 @@ }, { "_id": 1005, - "name": "Informasjon", + "name": "Informasjon (komité)", "slug": "informasjon", "access_roles": [], "accepts_admissions": true, @@ -183,7 +183,7 @@ }, { "_id": 1006, - "name": "Arrangement", + "name": "Arrangement (komité)", "slug": "arrangement", "access_roles": [], "accepts_admissions": true, From 380c37b39ffb18d91e6682b8a82bdb72a081cf63 Mon Sep 17 00:00:00 2001 From: Mateo Souto Date: Mon, 17 Aug 2026 11:33:20 +0200 Subject: [PATCH 2/2] fix: add sl check in db query --- backend/controllers/applicationController.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/controllers/applicationController.ts b/backend/controllers/applicationController.ts index add37fc..bfe8636 100644 --- a/backend/controllers/applicationController.ts +++ b/backend/controllers/applicationController.ts @@ -166,6 +166,7 @@ const getApplications = async ( // Main board see all applications except ones only to the main board const userAuthorizedCommittees = { $match: { + sl: isSL, committees: { $ne: [MAIN_BOARD_ID], },