fix: only show public courses for anon users

This commit is contained in:
swve 2023-06-28 17:43:44 +02:00
parent c3a5f43f13
commit cd7ec3a4d7
4 changed files with 28 additions and 44 deletions

View file

@ -9,7 +9,6 @@ import { RequestBody, RequestBodyForm, RequestBodyWithAuthHeader, errorHandling
export async function getOrgCourses(org_id: number, next: any) {
const result: any = await fetch(`${getAPIUrl()}courses/org_slug/${org_id}/page/1/limit/10`, RequestBody("GET", null, next));
const res = await errorHandling(result);
return res;
}