[FIX SECURITY-250] Restrict access to admin APIs

This commit is contained in:
Daniel Beck committed 2016-02-15 03:48:25 +01:00
1 parent fb22305427
commit 17edeb4829
3 files changed
+3

No files matched your search

@@ -218,6 +218,7 @@ public class PluginWrapper implements Comparable<PluginWrapper>, ModelObject {
}
public Api getApi() {
Jenkins.getInstance().checkPermission(Jenkins.ADMINISTER);
return new Api(this);
}