瀏覽代碼

请假记录

Administrator 1 年之前
父節點
當前提交
91ec3e8daf

+ 0 - 1
ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/XiaoyuanNoticeController.java

@@ -82,7 +82,6 @@ public class XiaoyuanNoticeController extends BaseController
     /**
      * 获取校园新闻详细信息
      */
-    @PreAuthorize("@ss.hasPermi('xiaoYuan:notice:query')")
     @GetMapping(value = "/{noticeId}")
     public AjaxResult getInfo(@PathVariable("noticeId") Integer noticeId)
     {

+ 1 - 1
ruoyi-framework/src/main/java/com/ruoyi/framework/config/SecurityConfig.java

@@ -112,7 +112,7 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter
                 .authorizeRequests()
                 // 对于登录login 注册register 验证码captchaImage 允许匿名访问
                 .antMatchers("/login", "/register", "/captchaImage","/weChatLogin","/weChatOpenid","/common/upload",
-                        "/flowable/definition/**","/register/school/**","/system/dept/list/**","/system/xiaoYuanInfo/**",
+                        "/flowable/definition/**","/register/school/**","/system/dept/list/**","/system/xiaoYuanInfo/**","/xiaoYuan/notice/**",
                         "/system/dict/data/type/**","/register/teacher/**","/register/parents/**","/register/student/**").permitAll()
                 // 静态资源,可匿名访问
                 .antMatchers(HttpMethod.GET, "/", "/*.html", "/**/*.html", "/**/*.css", "/**/*.js", "/profile/**").permitAll()