修改权限
This commit is contained in:
parent
40f7e34528
commit
f1dacb165a
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user