提交 5c8c643b 编写于 作者: R Ryan Campbell

Require UPLOAD_PLUGINS permission for install-plugin cli command

上级 2b56de98
......@@ -71,7 +71,7 @@ public class InstallPluginCommand extends CLICommand {
protected int run() throws Exception {
Jenkins h = Jenkins.getInstance();
h.checkPermission(Jenkins.ADMINISTER);
h.checkPermission(PluginManager.UPLOAD_PLUGINS);
PluginManager pm = h.getPluginManager();
for (String source : sources) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册