提交 6cc90ddd 编写于 作者: K Kohsuke Kawaguchi

[SECURITY-31] avoid over-eagerly creating user objects.

上级 0abc961d
......@@ -2247,7 +2247,7 @@ public class Jenkins extends AbstractCIBase implements ModifiableItemGroup<TopLe
* This method returns a non-null object for any user name, without validation.
*/
public User getUser(String name) {
return User.get(name);
return User.get(name,hasPermission(ADMINISTER));
}
/**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册