Commit feaf1d19 authored by nie'hong's avatar nie'hong

提交互动信息限制账号只能是当前登录人

parent 4737c510
......@@ -88,6 +88,12 @@ public class TInteractionController extends BaseController {
resultMap.put("message", "互动管理员账号或密码不能为空");
return resultMap;
}
// 只能填写当前操作的互动审核员账号
if (!tInteraction.getName().equals(user.getUserName())) {
resultMap.put("resultCode", "400");
resultMap.put("message", "请填写当前登录用户的账号和密码");
return resultMap;
}
TUser tUser = userService.selectByUsername(tInteraction.getName());
if (tUser == null) {
resultMap.put("resultCode", "400");
......
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