File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
src/main/java/com/google/jenkins/plugins/computeengine Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change 1616
1717package com .google .jenkins .plugins .computeengine ;
1818
19+ import static com .google .jenkins .plugins .computeengine .ComputeEngineCloud .checkPermissions ;
20+
1921import com .google .api .services .compute .model .AcceleratorType ;
2022import com .google .cloud .graphite .platforms .plugin .client .ClientFactory ;
2123import 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 );
You can’t perform that action at this time.
0 commit comments