Skip to content

Commit d8f6681

Browse files
committed
Fix admission status to make election committee see law committee and fixtures
1 parent 7bb37c0 commit d8f6681

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

backend/fixtures/development/committees.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,5 +78,17 @@
7878
"deputy_board_member"
7979
],
8080
"accepts_admissions": false
81+
},
82+
{
83+
"_id": 11,
84+
"name": "Lovutvalget",
85+
"slug": "lovutvalget",
86+
"access_roles": [
87+
"deputy_leader",
88+
"cashier",
89+
"board_member",
90+
"deputy_board_member"
91+
],
92+
"accepts_admissions": true
8193
}
8294
]

frontend/src/pages/AdmissionStatus.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,11 +142,11 @@ function AdmissionStatus() {
142142
committee.slug !== 'valgkomiteen' && committee.slug !== 'hovedstyret'
143143
)
144144
})
145-
// Election committee can see main board
145+
// Election committee can see main board and the law committee
146146
} else if (locationState.isElectionCommittee) {
147147
allCommittees = await getAllCommittees()
148148
allCommittees = allCommittees.filter((committee: ICommittee) => {
149-
return committee.slug === 'hovedstyret'
149+
return committee.slug === 'hovedstyret' || committee.slug === 'lovutvalget'
150150
})
151151
// Include the users other committees
152152
const committeesRes = await getUserCommittees()

0 commit comments

Comments
 (0)