lishuangjiang@potevio.com hace 1 año
padre
commit
433ce62a1f

+ 1 - 1
iot-module/iot-system/src/main/java/cc/iotkit/system/controller/SysRoleController.java

@@ -110,7 +110,7 @@ public class SysRoleController extends BaseController {
     @PostMapping("/edit")
     public void edit(@Validated @RequestBody Request<SysRoleBo> bo) {
         SysRoleBo role = bo.getData();
-
+        role.setTenantId(TenantHelper.getTenantId());
         roleService.checkRoleAllowed(role.getId());
         roleService.checkRoleDataScope(role.getId());
         if (!roleService.checkRoleNameUnique(role)) {