提交 c14c7619 编写于 作者: N Nicolas De Loof

let user with CONFIGURE permision rename a job

上级 e0986b5f
......@@ -1207,9 +1207,12 @@ public abstract class Job<JobT extends Job<JobT, RunT>, RunT extends Run<JobT, R
public/* not synchronized. see renameTo() */void doDoRename(
StaplerRequest req, StaplerResponse rsp) throws IOException,
ServletException {
// rename is essentially delete followed by a create
checkPermission(CREATE);
checkPermission(DELETE);
if (!hasPermission(CONFIGURE)) {
// rename is essentially delete followed by a create
checkPermission(CREATE);
checkPermission(DELETE);
}
String newName = req.getParameter("newName");
Jenkins.checkGoodName(newName);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册