|
|
|
@ -61,7 +61,9 @@ public class SysUserExamineController extends BaseController {
|
|
|
|
|
public String userExamine(@PathVariable("userId") Long userId, ModelMap mmap)
|
|
|
|
|
{
|
|
|
|
|
userService.checkUserDataScope(userId);
|
|
|
|
|
SysUser sysuser = getSysUser();
|
|
|
|
|
List<SysRole> roles = roleService.selectRolesByUserId(userId);
|
|
|
|
|
mmap.put("sysuser",sysuser);
|
|
|
|
|
mmap.put("user", userService.selectUserById(userId));
|
|
|
|
|
mmap.put("roles", SysUser.isAdmin(userId) ? roles : roles.stream().filter(r -> !r.isAdmin()).collect(Collectors.toList()));
|
|
|
|
|
mmap.put("posts", postService.selectPostsByUserId(userId));
|
|
|
|
|