Finalize Chapter 08 security configuration
This commit is contained in:
1 parent
a707f6ccde
commit
96ab5e2588
1 file changed
+1
@@ -161,6 +161,7 @@ public class ExamAttemptResource {
|
||||
* @param eagerload flag to eager load entities from relationships (This is applicable for many-to-many).
|
||||
* @return the {@link ResponseEntity} with status {@code 200 (OK)} and the list of Exam Attempts in body.
|
||||
*/
|
||||
@PreAuthorize("hasAuthority('" + AuthoritiesConstants.ADMIN + "')")
|
||||
@GetMapping("")
|
||||
public ResponseEntity<List<ExamAttemptDTO>> getAllExamAttempts(
|
||||
@org.springdoc.core.annotations.ParameterObject Pageable pageable,
|
||||
|
||||
Reference in new issue
Block a user