diff --git a/source/xzs/src/main/java/com/mindskip/xzs/configuration/spring/security/SecurityConfigurer.java b/source/xzs/src/main/java/com/mindskip/xzs/configuration/spring/security/SecurityConfigurer.java index 22363fd..04e0789 100644 --- a/source/xzs/src/main/java/com/mindskip/xzs/configuration/spring/security/SecurityConfigurer.java +++ b/source/xzs/src/main/java/com/mindskip/xzs/configuration/spring/security/SecurityConfigurer.java @@ -69,7 +69,7 @@ public class SecurityConfigurer { .antMatchers(securityIgnoreUrls.toArray(ignores)).permitAll() .antMatchers("/api/admin/**").hasRole(RoleEnum.ADMIN.getName()) .antMatchers("/api/student/exampaper/answer/read/*").hasAnyRole(RoleEnum.ADMIN.getName(),RoleEnum.STUDENT.getName()) - .antMatchers("/api/student/exampaper/answer/edit").hasAnyRole(RoleEnum.ADMIN.getName(),RoleEnum.STUDENT.getName()) + .antMatchers("/api/student/exampaper/answer/edit").hasAnyRole(RoleEnum.ADMIN.getName()) .antMatchers("/api/student/**").hasRole(RoleEnum.STUDENT.getName()) .anyRequest().permitAll() .and().exceptionHandling().accessDeniedHandler(restAccessDeniedHandler)