@@ -507,7 +507,7 @@ public static class DescriptorImpl extends Descriptor<GitLabServer> {
507
507
*/
508
508
@ POST
509
509
public static FormValidation doCheckServerUrl (@ QueryParameter String serverUrl ) {
510
- Jenkins .get ().checkPermission (Jenkins .ADMINISTER );
510
+ Jenkins .get ().checkPermission (Jenkins .MANAGE );
511
511
try {
512
512
new URL (serverUrl );
513
513
} catch (MalformedURLException e ) {
@@ -626,7 +626,7 @@ public FormValidation doTestConnection(@QueryParameter String serverUrl, @QueryP
626
626
public ListBoxModel doFillCredentialsIdItems (
627
627
@ QueryParameter String serverUrl , @ QueryParameter String credentialsId ) {
628
628
Jenkins jenkins = Jenkins .get ();
629
- if (!jenkins .hasPermission (Jenkins .ADMINISTER )) {
629
+ if (!jenkins .hasPermission (Jenkins .MANAGE )) {
630
630
return new StandardListBoxModel ().includeCurrentValue (credentialsId );
631
631
}
632
632
return new StandardListBoxModel ()
@@ -650,7 +650,7 @@ public ListBoxModel doFillCredentialsIdItems(
650
650
public ListBoxModel doFillWebhookSecretCredentialsIdItems (
651
651
@ QueryParameter String serverUrl , @ QueryParameter String webhookSecretCredentialsId ) {
652
652
Jenkins jenkins = Jenkins .get ();
653
- if (!jenkins .hasPermission (Jenkins .ADMINISTER )) {
653
+ if (!jenkins .hasPermission (Jenkins .MANAGE )) {
654
654
return new StandardListBoxModel ().includeCurrentValue (webhookSecretCredentialsId );
655
655
}
656
656
return new StandardListBoxModel ()
@@ -665,7 +665,7 @@ public ListBoxModel doFillWebhookSecretCredentialsIdItems(
665
665
666
666
private StandardCredentials getCredentials (String serverUrl , String credentialsId ) {
667
667
Jenkins jenkins = Jenkins .get ();
668
- jenkins .checkPermission (Jenkins .ADMINISTER );
668
+ jenkins .checkPermission (Jenkins .MANAGE );
669
669
return StringUtils .isBlank (credentialsId )
670
670
? null
671
671
: CredentialsMatchers .firstOrNull (
0 commit comments