File tree Expand file tree Collapse file tree 2 files changed +5
-14
lines changed
resources/jenkins/security/ResourceDomainRecommendation Expand file tree Collapse file tree 2 files changed +5
-14
lines changed Original file line number Diff line number Diff line change 2929import hudson .model .DirectoryBrowserSupport ;
3030import hudson .security .Permission ;
3131import hudson .util .HttpResponses ;
32- import java .io .IOException ;
3332import jenkins .model .Jenkins ;
3433import jenkins .util .SystemProperties ;
3534import org .kohsuke .accmod .Restricted ;
3635import org .kohsuke .accmod .restrictions .NoExternalUse ;
3736import org .kohsuke .stapler .HttpResponse ;
38- import org .kohsuke .stapler .QueryParameter ;
3937import org .kohsuke .stapler .interceptor .RequirePOST ;
4038
4139/**
@@ -64,16 +62,9 @@ public boolean isActivated() {
6462 }
6563
6664 @ RequirePOST
67- public HttpResponse doAct ( @ QueryParameter String redirect , @ QueryParameter String dismiss ) throws IOException {
65+ public HttpResponse doConfigure () {
6866 Jenkins .get ().checkPermission (Jenkins .ADMINISTER );
69- if (dismiss != null ) {
70- disable (true );
71- return HttpResponses .redirectViaContextPath ("manage" );
72- }
73- if (redirect != null ) {
74- return HttpResponses .redirectViaContextPath ("configure" );
75- }
76- return HttpResponses .forwardToPreviousPage ();
67+ return HttpResponses .redirectViaContextPath ("configure" );
7768 }
7869
7970 @ Override
Original file line number Diff line number Diff line change 3030 div(class : " jenkins-alert jenkins-alert-info" ) {
3131 a(name : " resource-root-url" )
3232 l. isAdmin() {
33- form(method : " post" , action : " ${ rootURL } / ${ my.url } /act " ) {
34- f. submit(name : ' redirect ' , value : _(" Configure resource root URL" ))
35- f. submit(name : ' dismiss ' , value : _(" Dismiss" ))
33+ form(method : " post" ) {
34+ f. submit(value : _(" Configure resource root URL" ), action : " ${ rootURL } / ${ my.url } /configure " )
35+ f. submit(value : _(" Dismiss" ), action : " ${ rootURL } / ${ my.url } /disable " )
3636 }
3737 }
3838
You can’t perform that action at this time.
0 commit comments