Skip to content

Commit 1cebe2d

Browse files
authored
Merge pull request #2361 from bcgov/feature/eac-166
EAC-166: Small fix
2 parents 10266bb + 07e050a commit 1cebe2d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

frontend/src/components/assessments/registrations/StudentRegistrations.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ export default {
304304
return Object.values(this.filterSearchParams.moreFilters).filter(filter => !!filter ).reduce((total, filter) => total.concat(filter), []).length;
305305
},
306306
hasEditPermission(){
307-
return (this.userInfo?.activeInstitutePermissions?.filter(perm => perm === PERMISSION.EAS_SCH_EDIT || PERMISSION.EAS_DIS_EDIT).length > 0);
307+
return (this.userInfo?.activeInstitutePermissions?.filter(perm => perm === PERMISSION.EAS_SCH_EDIT || perm === PERMISSION.EAS_DIS_EDIT).length > 0);
308308
},
309309
},
310310
created() {

frontend/src/components/assessments/registrations/forms/EditStudentRegistration.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ export default {
316316
...mapState(appStore, ['activeSchoolsMap', 'schoolsMap', 'config']),
317317
...mapState(easStore, ['specialCaseCodes']),
318318
hasEditPermission(){
319-
return (this.userInfo?.activeInstitutePermissions?.filter(perm => perm === PERMISSION.EAS_SCH_EDIT || PERMISSION.EAS_DIS_EDIT).length > 0);
319+
return (this.userInfo?.activeInstitutePermissions?.filter(perm => perm === PERMISSION.EAS_SCH_EDIT || perm === PERMISSION.EAS_DIS_EDIT).length > 0);
320320
},
321321
},
322322
watch: {

0 commit comments

Comments
 (0)