mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-16 13:32:24 +00:00
require RUN_SCRIPTS permission to run scripts onn node
This commit is contained in:
1 parent
74d2607b8d
commit
6dfd8db3c2
2 files changed
+3
-4
No files matched your search
@@ -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) {
|
||||
|
||||
@@ -36,7 +36,7 @@ THE SOFTWARE.
|
||||
<l:task icon="images/24x24/setting.png" href="configure" title="${%Configure}" permission="${it.CONFIGURE}" />
|
||||
<l:task icon="images/24x24/notepad.png" href="builds" title="${%Build History}" />
|
||||
<l:task icon="images/24x24/monitor.png" href="load-statistics" title="${%Load Statistics}" />
|
||||
<l:task icon="images/24x24/terminal.png" href="script" title="${%Script Console}" permission="${app.ADMINISTER}" />
|
||||
<l:task icon="images/24x24/terminal.png" href="script" title="${%Script Console}" permission="${app.RUN_SCRIPTS}" />
|
||||
<st:include page="sidepanel2.jelly" optional="true" /><!-- hook for derived class to add more items -->
|
||||
<t:actions />
|
||||
</l:tasks>
|
||||
|
||||
Reference in new issue
Block a user