Skip to content

Commit

Permalink
fix creation of courses
Browse files Browse the repository at this point in the history
  • Loading branch information
ngoerlitz committed Sep 6, 2023
1 parent dc33fea commit d909682
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controllers/course/CourseAdministrationController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ async function createCourse(request: Request, response: Response) {
return;
}

if (!user.hasPermission("course.create") || !(await user.canManageCourseInMentorGroup(Number(body.mentor_group_id)))) {
if (!(await user.canManageCourseInMentorGroup(Number(body.mentor_group_id)))) {
response.sendStatus(HttpStatusCode.Forbidden);
return;
}
Expand Down

0 comments on commit d909682

Please sign in to comment.