Skip to content

Commit c0d9c53

Browse files
change attendance checker endpoint to tutor in course
1 parent 74b871d commit c0d9c53

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/main/java/de/tum/cit/aet/artemis/exam/web/ExamRoomDistributionResource.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717

1818
import de.tum.cit.aet.artemis.core.exception.BadRequestAlertException;
1919
import de.tum.cit.aet.artemis.core.security.annotations.EnforceAtLeastInstructor;
20+
import de.tum.cit.aet.artemis.core.security.annotations.enforceRoleInCourse.EnforceAtLeastTutorInCourse;
2021
import de.tum.cit.aet.artemis.exam.config.ExamEnabled;
2122
import de.tum.cit.aet.artemis.exam.domain.Exam;
2223
import 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

0 commit comments

Comments
 (0)