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

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

parent d839d8ec
......@@ -1908,7 +1908,7 @@ public class ProjectApi extends AbstractApi implements Constants {
throws GitLabApiException {
GitLabApiForm formData = new GitLabApiForm()
.withParam("group_id", groupId, true)
.withParam("group_access", accessLevel.toValue(), true)
.withParam("group_access", accessLevel, true)
.withParam("expires_at", expiresAt);
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