提交 642138dd 编写于 作者: R Robert Sandell

Invalidate UserDetailsCache when User.fullName changes

上级 082e22c8
......@@ -772,7 +772,7 @@ public class User extends AbstractModelObject implements AccessControlled, Descr
checkPermission(Jenkins.ADMINISTER);
JSONObject json = req.getSubmittedForm();
String oldFullName = this.fullName;
fullName = json.getString("fullName");
description = json.getString("description");
......@@ -798,6 +798,10 @@ public class User extends AbstractModelObject implements AccessControlled, Descr
save();
if (oldFullName != null && !oldFullName.equals(this.fullName)) {
UserDetailsCache.get().invalidate(oldFullName);
}
FormApply.success(".").generateResponse(req,rsp,this);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册