File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/main/java/de/tum/cit/aet/artemis/exam/web Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 1717
1818import de .tum .cit .aet .artemis .core .exception .BadRequestAlertException ;
1919import de .tum .cit .aet .artemis .core .security .annotations .EnforceAtLeastInstructor ;
20+ import de .tum .cit .aet .artemis .core .security .annotations .enforceRoleInCourse .EnforceAtLeastTutorInCourse ;
2021import de .tum .cit .aet .artemis .exam .config .ExamEnabled ;
2122import de .tum .cit .aet .artemis .exam .domain .Exam ;
2223import de .tum .cit .aet .artemis .exam .domain .ExamUser ;
@@ -144,10 +145,10 @@ public ResponseEntity<ExamDistributionCapacityDTO> getDistributionCapacities(@Re
144145 * @return 200 (OK) if the retrieval was successful
145146 */
146147 @ GetMapping ("courses/{courseId}/exams/{examId}/attendance-checker-information" )
147- @ EnforceAtLeastInstructor
148+ @ EnforceAtLeastTutorInCourse
148149 public ResponseEntity <AttendanceCheckerAppExamInformationDTO > getAttendanceCheckerAppInformation (@ PathVariable long courseId , @ PathVariable long examId ) {
149150 log .debug ("REST request to get attendance checker information for exam : {}" , examId );
150- examAccessService .checkCourseAndExamAccessForInstructorElseThrow (courseId , examId );
151+ examAccessService .checkCourseAndExamAccessForTeachingAssistantElseThrow (courseId , examId );
151152
152153 var information = examRoomDistributionService .getAttendanceCheckerAppInformation (examId );
153154
You can’t perform that action at this time.
0 commit comments