diff --git a/frontend/src/app/assignment/services/course.service.ts b/frontend/src/app/assignment/services/course.service.ts index 3f8631494..5e0e458b0 100644 --- a/frontend/src/app/assignment/services/course.service.ts +++ b/frontend/src/app/assignment/services/course.service.ts @@ -73,7 +73,12 @@ export class CourseService { getOwn(): Observable { return this.userService.getCurrent().pipe( - switchMap(user => user ? this.http.get(`${environment.assignmentsApiUrl}/courses`, {params: {createdBy: user.id!}}) : of([])), + switchMap(user => user ? this.http.get(`${environment.assignmentsApiUrl}/courses`, { + params: { + createdBy: user.id!, + members: [user.id!], + }, + }) : of([])), ); } }