diff --git a/src/controllers/groups_controller.rs b/src/controllers/groups_controller.rs index de97500..55bf808 100644 --- a/src/controllers/groups_controller.rs +++ b/src/controllers/groups_controller.rs @@ -341,7 +341,7 @@ pub fn get_membership(r: &mut HttpRequestHandler) -> RequestResult { /// Delete the membership of a user over a group pub fn remove_membership(r: &mut HttpRequestHandler) -> RequestResult { - let group_id = r.post_group_id_with_access("groupID", GroupAccessLevel::LIMITED_ACCESS)?; + let group_id = r.post_group_id_with_access("id", GroupAccessLevel::LIMITED_ACCESS)?; if groups_helper::is_last_admin(&group_id, &r.user_id()?)? { r.forbidden("You are the last administrator of this group!".to_string())?;