Skip to content

Commit

Permalink
Housing enquiry permission added to admin, supervisor, navigator & na…
Browse files Browse the repository at this point in the history
…vigator read-only, InputMaskInternal placeholder prop type optional to fix console warning, navbar enquiry permission updated
  • Loading branch information
sanjaytkbabu committed Oct 2, 2024
1 parent dbffa2a commit bb48516
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const { label, name, mask, placeholder, disabled, bold } = defineProps<{
label: string;
name: string;
mask: string;
placeholder: string;
placeholder?: string;
disabled: boolean;
bold: boolean;
}>();
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/layout/Navbar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ onMounted(() => {
{
label: 'Submit an enquiry',
route: RouteName.HOUSING_ENQUIRY_INTAKE,
access: NavigationPermission.HOUSING_ENQUIRY
access: NavigationPermission.HOUSING_INTAKE
},
{
label: 'View my drafts and previous entries',
Expand Down
9 changes: 8 additions & 1 deletion frontend/src/store/authzStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ const NavigationAuthorizationMap = [
group: GroupName.ADMIN,
permissions: [
NavigationPermission.HOUSING_DROPDOWN,
NavigationPermission.HOUSING_ENQUIRY,
NavigationPermission.HOUSING_STATUS_TRACKER,
NavigationPermission.HOUSING_SUBMISSION,
NavigationPermission.HOUSING_SUBMISSIONS,
Expand All @@ -37,14 +38,19 @@ const NavigationAuthorizationMap = [
group: GroupName.NAVIGATOR,
permissions: [
NavigationPermission.HOUSING_DROPDOWN,
NavigationPermission.HOUSING_ENQUIRY,
NavigationPermission.HOUSING_STATUS_TRACKER,
NavigationPermission.HOUSING_SUBMISSION,
NavigationPermission.HOUSING_SUBMISSIONS
]
},
{
group: GroupName.NAVIGATOR_READ_ONLY,
permissions: [NavigationPermission.HOUSING_SUBMISSION, NavigationPermission.HOUSING_SUBMISSIONS]
permissions: [
NavigationPermission.HOUSING_ENQUIRY,
NavigationPermission.HOUSING_SUBMISSION,
NavigationPermission.HOUSING_SUBMISSIONS
]
},
{
group: GroupName.PROPONENT,
Expand All @@ -61,6 +67,7 @@ const NavigationAuthorizationMap = [
group: GroupName.SUPERVISOR,
permissions: [
NavigationPermission.HOUSING_DROPDOWN,
NavigationPermission.HOUSING_ENQUIRY,
NavigationPermission.HOUSING_STATUS_TRACKER,
NavigationPermission.HOUSING_SUBMISSION,
NavigationPermission.HOUSING_SUBMISSIONS,
Expand Down

0 comments on commit bb48516

Please sign in to comment.