mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-10-28 20:15:22 +00:00
[FIX SECURITY-250] Restrict access to admin APIs
This commit is contained in:
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);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user