Commit 57754393 authored by Greg Messner's avatar Greg Messner
Browse files

Now uses withParam() method that takes AccessLevel as the value.

parent d839d8ec
Showing with 1 addition and 1 deletion
+1 -1
...@@ -1908,7 +1908,7 @@ public class ProjectApi extends AbstractApi implements Constants { ...@@ -1908,7 +1908,7 @@ public class ProjectApi extends AbstractApi implements Constants {
throws GitLabApiException { throws GitLabApiException {
GitLabApiForm formData = new GitLabApiForm() GitLabApiForm formData = new GitLabApiForm()
.withParam("group_id", groupId, true) .withParam("group_id", groupId, true)
.withParam("group_access", accessLevel.toValue(), true) .withParam("group_access", accessLevel, true)
.withParam("expires_at", expiresAt); .withParam("expires_at", expiresAt);
post(Response.Status.CREATED, formData, "projects", projectId, "share"); post(Response.Status.CREATED, formData, "projects", projectId, "share");
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment