ENCOA-133: Teachers within a Group should be able to view the Group assignments

This commit is contained in:
Tiago Ribeiro
2024-09-04 15:26:42 +01:00
parent 2d95cbd3dc
commit 7bcd0f863f
4 changed files with 84 additions and 23 deletions

View File

@@ -320,7 +320,7 @@ export default function MasterCorporateDashboard({user}: Props) {
() =>
users.filter(
(x) =>
x.type === "student" &&
(x.type === "student" || x.type === "teacher") &&
(!!selectedUser
? groups
.filter((g) => g.admin === selectedUser.id)