From 1038a53e4b173bb853547e5250565567b8e85716 Mon Sep 17 00:00:00 2001 From: lohir <3399054449@qq.com> Date: 星期一, 21 十月 2024 09:30:10 +0800 Subject: [PATCH] 删除江西空管关键字 --- src/main/java/com/ycl/jxkg/config/spring/security/SecurityConfigurer.java | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/main/java/com/ycl/jxkg/config/spring/security/SecurityConfigurer.java b/src/main/java/com/ycl/jxkg/config/spring/security/SecurityConfigurer.java index 3bf787b..fb2a490 100644 --- a/src/main/java/com/ycl/jxkg/config/spring/security/SecurityConfigurer.java +++ b/src/main/java/com/ycl/jxkg/config/spring/security/SecurityConfigurer.java @@ -91,7 +91,7 @@ .authorizeRequests() .antMatchers(securityIgnoreUrls.toArray(ignores)).permitAll() .antMatchers("/api/admin/user/update/password").permitAll() - .antMatchers("/api/admin/**").hasRole(RoleEnum.ADMIN.getName()) + .antMatchers("/api/admin/**").hasAnyRole(RoleEnum.ADMIN.getName(),RoleEnum.TEACHER.getName()) .antMatchers("/api/student/**").hasRole(RoleEnum.STUDENT.getName()) .antMatchers("/api/register/**").anonymous() .anyRequest().permitAll() -- Gitblit v1.8.0