Limit functionalities by roles

This commit is contained in:
rotimi-best
2021-09-11 21:52:46 +03:00
parent 220f35b3db
commit 07eba6b4e0
14 changed files with 296 additions and 224 deletions
-2
View File
@@ -85,11 +85,9 @@
});
$: {
// students = $group.people.filter((person) => !!person.profile);
students = $group.people.filter(
(person) => !!person.profile && person.role_id === ROLE.STUDENT
);
console.log(`students`, students);
}
</script>