Skip to content

Commit

Permalink
Fix for school roles.
Browse files Browse the repository at this point in the history
  • Loading branch information
arcshiftsolutions committed Nov 7, 2024
1 parent 4ffb4bc commit 4ee8f5b
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@
<v-divider />
<v-card-text>
<InviteUserPage
:user-roles="filteredSchoolRoles"
:user-roles="schoolRoles"
:institute-code="schoolID"
institute-type-code="SCHOOL"
institute-type-label="School"
Expand Down Expand Up @@ -333,7 +333,6 @@ export default {
primaryEdxActivationCode: null,
instituteCode: '',
instituteTypeLabel: 'School',
schoolSDCRoles: [ROLES.SCHOOL_SDC, ROLES.SCH_SDC_RO],
doShowGenerateNewPrimaryEdxActivationCodeDialog: false,
showTooltip: false
};
Expand All @@ -346,9 +345,6 @@ export default {
return this.users.filter(user => {
return user.edxUserSchools.some(school => school.edxUserSchoolRoles.some(role => role.edxRoleCode === ROLES.EDX_SCHOOL_ADMIN));
})?.length > 0;
},
filteredSchoolRoles() {
return this.config.DISABLE_SDC_FUNCTIONALITY ? this.schoolRoles.filter(role => !this.schoolSDCRoles.includes(role.edxRoleCode)) : this.schoolRoles;
}
},
async beforeMount() {
Expand Down

0 comments on commit 4ee8f5b

Please sign in to comment.