Updated the Groups List to allow teachers to view their corporate's students
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user