Skip to content

Commit 5775439

Browse files
committed
Now uses withParam() method that takes AccessLevel as the value.
1 parent d839d8e commit 5775439

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/gitlab4j/api/ProjectApi.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1908,7 +1908,7 @@ public void shareProject(Integer projectId, Integer groupId, AccessLevel accessL
19081908
throws GitLabApiException {
19091909
GitLabApiForm formData = new GitLabApiForm()
19101910
.withParam("group_id", groupId, true)
1911-
.withParam("group_access", accessLevel.toValue(), true)
1911+
.withParam("group_access", accessLevel, true)
19121912
.withParam("expires_at", expiresAt);
19131913
post(Response.Status.CREATED, formData, "projects", projectId, "share");
19141914
}

0 commit comments

Comments
 (0)