Updated the Groups List to allow teachers to view their corporate's students

This commit is contained in:
Tiago Ribeiro
2024-08-16 11:50:27 +01:00
parent 0a28c2bd41
commit 878c7c2ef0
5 changed files with 17 additions and 13 deletions

View File

@@ -17,7 +17,6 @@ export default function usePermissions(user: string) {
const permissionTypes = response.data
.filter((x) => !x.users.includes(user))
.reduce((acc, curr) => [...acc, curr.type], [] as PermissionType[]);
console.log(response.data, permissionTypes);
setPermissions(permissionTypes);
})
.finally(() => setIsLoading(false));