Skip to content

Commit fa446a7

Browse files
rsandellraul-arabaolaza
authored andcommitted
SECURITY-3268
1 parent 5ed247b commit fa446a7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/main/java/com/google/jenkins/plugins/computeengine/AcceleratorConfiguration.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616

1717
package com.google.jenkins.plugins.computeengine;
1818

19+
import static com.google.jenkins.plugins.computeengine.ComputeEngineCloud.checkPermissions;
20+
1921
import com.google.api.services.compute.model.AcceleratorType;
2022
import com.google.cloud.graphite.platforms.plugin.client.ClientFactory;
2123
import com.google.cloud.graphite.platforms.plugin.client.ComputeClient;
@@ -81,6 +83,7 @@ public ListBoxModel doFillGpuTypeItems(
8183
@QueryParameter("projectId") @RelativePath("../..") final String projectId,
8284
@QueryParameter("zone") @RelativePath("..") String zone,
8385
@QueryParameter("credentialsId") @RelativePath("../..") final String credentialsId) {
86+
checkPermissions(Jenkins.get(), Jenkins.ADMINISTER);
8487
ListBoxModel items = new ListBoxModel();
8588
try {
8689
ComputeClient compute = computeClient(context, credentialsId);

0 commit comments

Comments
 (0)