From 0dd78d878d6b9f1f8d579775f243d79add799b62 Mon Sep 17 00:00:00 2001 From: zhangdaihao Date: Mon, 20 May 2019 12:00:07 +0800 Subject: [PATCH] =?UTF-8?q?JeecgBoot=20V2.0=E7=89=88=E6=9C=AC=20=E6=AD=A3?= =?UTF-8?q?=E5=BC=8F=E5=8F=91=E5=B8=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../jeecg/modules/system/controller/SysDepartController.java | 4 ---- .../jeecg/modules/system/controller/SysRoleController.java | 3 --- 2 files changed, 7 deletions(-) diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/controller/SysDepartController.java b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/controller/SysDepartController.java index aa92dbd2..45178513 100644 --- a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/controller/SysDepartController.java +++ b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/controller/SysDepartController.java @@ -83,7 +83,6 @@ public class SysDepartController { * @param sysDepart * @return */ - @RequiresRoles({"admin"}) @RequestMapping(value = "/add", method = RequestMethod.POST) public Result add(@RequestBody SysDepart sysDepart, HttpServletRequest request) { Result result = new Result(); @@ -105,7 +104,6 @@ public class SysDepartController { * @param sysDepart * @return */ - @RequiresRoles({"admin"}) @RequestMapping(value = "/edit", method = RequestMethod.PUT) public Result edit(@RequestBody SysDepart sysDepart, HttpServletRequest request) { String username = JwtUtil.getUserNameByToken(request); @@ -129,7 +127,6 @@ public class SysDepartController { * @param id * @return */ - @RequiresRoles({"admin"}) @RequestMapping(value = "/delete", method = RequestMethod.DELETE) public Result delete(@RequestParam(name="id",required=true) String id) { @@ -153,7 +150,6 @@ public class SysDepartController { * @param ids * @return */ - @RequiresRoles({"admin"}) @RequestMapping(value = "/deleteBatch", method = RequestMethod.DELETE) public Result deleteBatch(@RequestParam(name = "ids", required = true) String ids) { diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/controller/SysRoleController.java b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/controller/SysRoleController.java index 52dc2a2d..b2d89c4b 100644 --- a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/controller/SysRoleController.java +++ b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/controller/SysRoleController.java @@ -127,7 +127,6 @@ public class SysRoleController { * @param role * @return */ - @RequiresRoles({"admin"}) @RequestMapping(value = "/edit", method = RequestMethod.PUT) public Result edit(@RequestBody SysRole role) { Result result = new Result(); @@ -151,7 +150,6 @@ public class SysRoleController { * @param id * @return */ - @RequiresRoles({"admin"}) @CacheEvict(value="loginUser_cacheRules", allEntries=true) @RequestMapping(value = "/delete", method = RequestMethod.DELETE) public Result delete(@RequestParam(name="id",required=true) String id) { @@ -174,7 +172,6 @@ public class SysRoleController { * @param ids * @return */ - @RequiresRoles({"admin"}) @CacheEvict(value="loginUser_cacheRules", allEntries=true) @RequestMapping(value = "/deleteBatch", method = RequestMethod.DELETE) public Result deleteBatch(@RequestParam(name="ids",required=true) String ids) {