Commit 67b75bf8 by 吴迪

【新增】修改权限

parent b0b562cb
...@@ -63,7 +63,9 @@ public class ShiroConfig { ...@@ -63,7 +63,9 @@ public class ShiroConfig {
//不需要登录的接口 //不需要登录的接口
filterMap.put("/*/authApi/login", "anon"); filterMap.put("/*/authApi/login", "anon");
filterMap.put("/*/api/**", "anon"); filterMap.put("/*/api/**", "anon");
filterMap.put("/indexCarouselManage/**", "anon");
filterMap.put("/**", "oauth2"); filterMap.put("/**", "oauth2");
shiroFilter.setFilterChainDefinitionMap(filterMap); shiroFilter.setFilterChainDefinitionMap(filterMap);
return shiroFilter; return shiroFilter;
......
...@@ -49,6 +49,7 @@ public class IndexCarouselManageController extends AbstractController { ...@@ -49,6 +49,7 @@ public class IndexCarouselManageController extends AbstractController {
/** /**
* 信息 * 信息
*/ */
@Login
@RequestMapping("/info/{id}") @RequestMapping("/info/{id}")
// @RequiresPermissions("generator:indexcarouselmanage:info") // @RequiresPermissions("generator:indexcarouselmanage:info")
public R info(@PathVariable("id") Integer id){ public R info(@PathVariable("id") Integer id){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment