diff --git a/core/src/main/java/hudson/model/Computer.java b/core/src/main/java/hudson/model/Computer.java index 32668d496b..1890b8819e 100644 --- a/core/src/main/java/hudson/model/Computer.java +++ b/core/src/main/java/hudson/model/Computer.java @@ -1052,9 +1052,8 @@ public /*transient*/ abstract class Computer extends Actionable implements Acces } protected void _doScript( StaplerRequest req, StaplerResponse rsp, String view) throws IOException, ServletException { - // ability to run arbitrary script is dangerous, - // so tie it to the admin access - checkPermission(Jenkins.ADMINISTER); + // ability to run arbitrary script is dangerous + checkPermission(Jenkins.RUN_SCRIPTS); String text = req.getParameter("script"); if(text!=null) { diff --git a/core/src/main/resources/hudson/model/Computer/sidepanel.jelly b/core/src/main/resources/hudson/model/Computer/sidepanel.jelly index 64b93ef53e..059880771d 100644 --- a/core/src/main/resources/hudson/model/Computer/sidepanel.jelly +++ b/core/src/main/resources/hudson/model/Computer/sidepanel.jelly @@ -36,7 +36,7 @@ THE SOFTWARE. - +