Skip to content

Commit

Permalink
Correct "Fix permission denied on test connection for non admin" PR (#…
Browse files Browse the repository at this point in the history
…1440)

* Revert "fix permission denied on test connection for non admin (#1439)"

This reverts commit 3438d18.

* Update src/main/java/com/dabsquared/gitlabjenkins/connection/GitLabConnectionProperty.java
  • Loading branch information
krisstern authored Mar 29, 2023
1 parent 3438d18 commit f1ecd8d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ public ListBoxModel doFillJobCredentialIdItems(@AncestorInPath Item item, @Query
@Restricted(DoNotUse.class)
public FormValidation doTestConnection(@QueryParameter String jobCredentialId,
@QueryParameter String gitLabConnection, @AncestorInPath Item item) {
item.checkPermission(Jenkins.READ);
item.checkPermission(Item.CONFIGURE);
try {
GitLabConnection gitLabConnectionTested = null;
GitLabConnectionConfig descriptor = (GitLabConnectionConfig) Jenkins.getInstance()
Expand Down

0 comments on commit f1ecd8d

Please sign in to comment.