JENKINS-61201 JEP-224 System read - about jenkins (#4520)

This commit is contained in:
Tim Jacomb authored and GitHub committed 2020-02-27 07:47:54 +00:00
1 parent 28cad7f317
commit 47a0be9eda
4 files changed
+12 -5

No files matched your search

+1 -1
View File
@@ -439,7 +439,7 @@ public class PluginWrapper implements Comparable<PluginWrapper>, ModelObject {
}
public Api getApi() {
Jenkins.get().checkPermission(Jenkins.ADMINISTER);
Jenkins.get().checkPermission(Jenkins.SYSTEM_READ);
return new Api(this);
}