Skip to content

Commit

Permalink
[SECURITY-1650]
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-beck authored and Wadeck committed Jan 14, 2020
1 parent 639ade5 commit 7d44836
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/src/main/java/hudson/diagnosis/MemoryUsageMonitor.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
import java.util.ArrayList;
import java.io.IOException;

import jenkins.model.Jenkins;
import org.jenkinsci.Symbol;
import org.kohsuke.stapler.QueryParameter;

Expand Down Expand Up @@ -102,6 +103,7 @@ private void update() {
* Generates the memory usage statistics graph.
*/
public TrendChart doGraph(@QueryParameter String type) throws IOException {
Jenkins.get().checkPermission(Jenkins.ADMINISTER);
return MultiStageTimeSeries.createTrendChart(TimeScale.parse(type),used,max);
}
}
Expand Down

0 comments on commit 7d44836

Please sign in to comment.