|
|
|
@@ -282,6 +282,7 @@ public class SysUserController extends BaseController { |
|
|
|
@Log(title = "用户管理", businessType = BusinessType.GRANT) |
|
|
|
@PutMapping("/authRole/{userId}") |
|
|
|
public AjaxResult insertAuthRole(@PathVariable("userId") Long userId, @RequestBody Long[] roleIds) { |
|
|
|
userService.checkUserAllowed(new SysUser(userId)); |
|
|
|
userService.checkUserDataScope(userId); |
|
|
|
userService.insertUserAuth(userId, roleIds); |
|
|
|
return success(); |
|
|
|
|