Bladeren bron

fix template in matchers

Alex 4 jaren geleden
bovenliggende
commit
b2094970b6

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

@@ -56,7 +56,6 @@ public class TPersonalImgController extends BaseController
     /**
      * 查询个人页 图片列表
      */
-    @PreAuthorize("@ss.hasPermi('system:img:list')")
     @ApiOperation("个人图片列表")
     @GetMapping("/all")
     public AjaxResult all(TPersonalImg tPersonalImg)

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

@@ -62,7 +62,6 @@ public class TPersonalPageController extends BaseController
     /**
      * 获取个人页详细信息
      */
-    @PreAuthorize("@ss.hasPermi('system:personalPage:query')")
     @GetMapping(value = "/{id}")
     public AjaxResult getInfo(@PathVariable("id") Long id)
     {

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

@@ -115,6 +115,7 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter
                 .antMatchers("/druid/**").anonymous()
                 // 放行api业务
                 .antMatchers("/api/**").anonymous()
+                .antMatchers("/template/**").anonymous()
                 // 除上面外的所有请求全部需要鉴权认证
                 .anyRequest().authenticated()
                 .and()