Skip to content

Commit 5fc2b9a

Browse files
committed
Fix bug: instructor can't soft-delete lecture
1 parent b7b4651 commit 5fc2b9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

grader_service/handlers/lectures.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ async def get(self, lecture_id: int):
122122
raise HTTPError(HTTPStatus.NOT_FOUND, reason="Lecture was not found")
123123
self.write_json(lecture)
124124

125-
@authorize([Scope.admin])
125+
@authorize([Scope.instructor, Scope.admin])
126126
async def delete(self, lecture_id: int):
127127
"""
128128
Soft or Hard-Deletes a specific lecture.

0 commit comments

Comments
 (0)