修改权限
This commit is contained in:
		
							parent
							
								
									40f7e34528
								
							
						
					
					
						commit
						f1dacb165a
					
				@ -69,7 +69,7 @@ public class SecurityConfigurer {
 | 
				
			|||||||
                    .antMatchers(securityIgnoreUrls.toArray(ignores)).permitAll()
 | 
					                    .antMatchers(securityIgnoreUrls.toArray(ignores)).permitAll()
 | 
				
			||||||
                    .antMatchers("/api/admin/**").hasRole(RoleEnum.ADMIN.getName())
 | 
					                    .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/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())
 | 
					                    .antMatchers("/api/student/**").hasRole(RoleEnum.STUDENT.getName())
 | 
				
			||||||
                    .anyRequest().permitAll()
 | 
					                    .anyRequest().permitAll()
 | 
				
			||||||
                    .and().exceptionHandling().accessDeniedHandler(restAccessDeniedHandler)
 | 
					                    .and().exceptionHandling().accessDeniedHandler(restAccessDeniedHandler)
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user