Updates will be applied on October 27th between 12pm - 12:45pm EDT (UTC-0400). Gitlab may be slow during the maintenance window.

Commit 8e2bbedf authored by Ben Boeckel's avatar Ben Boeckel
Browse files

api: fix access_level passing

Fixes: #42
parent e763a020
......@@ -14,6 +14,12 @@
* The `api::projects::pipelines::PipelineVariables` endpoint is now pageable.
* All `EnableState` fields may now be set using `bool` values.
## Fixes
* The `min_access_level` field for `api::groups::Groups` and the
`access_level` for `api::projects::members::AddProjectMember` are now
properly passed as integers to the API. (#42)
# v0.1210.2
## New request body handling
......
......@@ -138,7 +138,7 @@ impl<'a> Endpoint for Groups<'a> {
.push_opt("owned", self.owned)
.push_opt(
"min_access_level",
self.min_access_level.map(|level| level.as_str()),
self.min_access_level.map(|level| level.as_u64()),
)
.push_opt("statistics", self.statistics)
.push_opt("with_custom_attributes", self.with_custom_attributes)
......
......@@ -48,7 +48,7 @@ impl<'a> Endpoint for AddProjectMember<'a> {
params
.push("user_id", self.user)
.push("access_level", self.access_level.as_str())
.push("access_level", self.access_level.as_u64())
.push_opt("expires_at", self.expires_at);
params.into_body()
......
Markdown is supported
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