[FIXED SECURITY-73] Require RUN_SCRIPTS for /heapDump.

This commit is contained in:
Jesse Glick committed 2014-02-11 14:07:32 -05:00
1 parent ac8e17b9ce
commit 0530a6645a
1 file changed
+1 -1
@@ -202,7 +202,7 @@ public final class RemotingDiagnostics {
@WebMethod(name="heapdump.hprof")
public void doHeapDump(StaplerRequest req, StaplerResponse rsp) throws IOException, InterruptedException {
owner.checkPermission(Jenkins.ADMINISTER);
owner.checkPermission(Jenkins.RUN_SCRIPTS);
rsp.setContentType("application/octet-stream");
FilePath dump = obtain();