Skip to content

Commit

Permalink
Add missing role descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
Bob Meredith committed Dec 13, 2024
1 parent 4cf2b19 commit d15f162
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
5 changes: 5 additions & 0 deletions server/utils/users/roles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,15 @@ export const roleLabelDictionary: RoleLabelDictionary = {
label: 'CRU member',
hint: 'Manage out of service beds across all premises and areas',
},
cru_member_enable_out_of_service_beds: {
label: 'CRU member enable out of service beds',
hint: 'Enable out of service beds',
},
cru_member_find_and_book_beta: {
label: 'CRU member beta (find and book)',
hint: 'Create and amend space bookings',
},

report_viewer: {
label: 'Report Viewer',
hint: 'View and download reports',
Expand Down
10 changes: 10 additions & 0 deletions server/utils/users/userManagement.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,11 @@ describe('userRolesSelectOptions', () => {
text: 'Excluded from placement application allocation',
value: 'excluded_from_placement_application_allocation',
},
{
selected: false,
text: 'CRU member enable out of service beds',
value: 'cru_member_enable_out_of_service_beds',
},
{ selected: false, text: 'CRU member beta (find and book)', value: 'cru_member_find_and_book_beta' },
{
selected: false,
Expand Down Expand Up @@ -153,6 +158,11 @@ describe('userRolesSelectOptions', () => {
text: 'Excluded from placement application allocation',
value: 'excluded_from_placement_application_allocation',
},
{
selected: false,
text: 'CRU member enable out of service beds',
value: 'cru_member_enable_out_of_service_beds',
},
{ selected: false, text: 'CRU member beta (find and book)', value: 'cru_member_find_and_book_beta' },
{
selected: false,
Expand Down
1 change: 1 addition & 0 deletions server/utils/users/userManagement.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ const userRoles: Record<RoleInUse, string> = {
excluded_from_assess_allocation: 'Excluded from assess allocation',
excluded_from_match_allocation: 'Excluded from match allocation',
excluded_from_placement_application_allocation: 'Excluded from placement application allocation',
cru_member_enable_out_of_service_beds: 'CRU member enable out of service beds',
cru_member_find_and_book_beta: 'CRU member beta (find and book)',
appeals_manager: 'Appeals manager',
future_manager: 'Future manager',
Expand Down

0 comments on commit d15f162

Please sign in to comment.