mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-03 23:25:52 +00:00
Merge branch 'security-stable-2.46' into security-master
This commit is contained in:
commit
f3304cb5cd
25 files changed
+423
-16
No files matched your search
@@ -1296,6 +1296,7 @@ public abstract class PluginManager extends AbstractModelObject implements OnMas
|
||||
return hudson.util.HttpResponses.okJSON(response);
|
||||
}
|
||||
|
||||
@RequirePOST
|
||||
public HttpResponse doUpdateSources(StaplerRequest req) throws IOException {
|
||||
Jenkins.getInstance().checkPermission(CONFIGURE_UPDATECENTER);
|
||||
|
||||
@@ -1330,6 +1331,7 @@ public abstract class PluginManager extends AbstractModelObject implements OnMas
|
||||
/**
|
||||
* Performs the installation of the plugins.
|
||||
*/
|
||||
@RequirePOST
|
||||
public void doInstall(StaplerRequest req, StaplerResponse rsp) throws IOException, ServletException {
|
||||
Jenkins.getInstance().checkPermission(Jenkins.ADMINISTER);
|
||||
Set<String> plugins = new LinkedHashSet<>();
|
||||
|
||||
Reference in new issue
Block a user