CLASSROOMIO-T-1: Personalize marks and attendance to students

This commit is contained in:
rotimi-best
2021-09-19 20:01:54 +03:00
parent 984a3d5e07
commit 5c9b6b9ae8
6 changed files with 36 additions and 56 deletions
+1 -10
View File
@@ -93,15 +93,6 @@
});
$: sortAndFilterPeople($group.people, filterBy);
$: {
const user: Person = $group.people.find(
(person: { profile_id: number }) => person.profile_id === $profile.id
)!;
if (user) {
isStudent = user.role_id === 3;
}
}
</script>
<InviationModal />
@@ -110,7 +101,7 @@
{deletePerson}
/>
<CourseContainer>
<CourseContainer bind:isStudent>
<PageNav title="People" disableSticky={true}>
<slot:fragment slot="widget">
<RoleBasedSecurity allowedRoles={[1, 2]}>