提交 e9ad7b24 编写于 作者: R Ryan Campbell

Require Jenkins.RUN_SCRIPTS for GroovyshCommand

上级 0643bd7f
......@@ -58,7 +58,7 @@ public class GroovyshCommand extends CLICommand {
@Override
public int main(List<String> args, Locale locale, InputStream stdin, PrintStream stdout, PrintStream stderr) {
// this allows the caller to manipulate the JVM state, so require the admin privilege.
Jenkins.getInstance().checkPermission(Jenkins.ADMINISTER);
Jenkins.getInstance().checkPermission(Jenkins.RUN_SCRIPTS);
// TODO: ^as this class overrides main() (which has authentication stuff),
// how to get ADMIN permission for this command?
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册