aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorStefan Melmuk <[email protected]>2022-11-23 15:47:45 +0100
committerStefan Melmuk <[email protected]>2022-11-23 15:47:45 +0100
commite27a5be47a4b11ef627e3b07ec5630568ef90b3b (patch)
tree9e4a53a7b67c71fbfa21b34caf9c41ab3e1f61bd /src
parent7a7673103fb180098f18abe77b75ba085710b559 (diff)
downloadvaultwarden-e27a5be47a4b11ef627e3b07ec5630568ef90b3b.tar.gz
vaultwarden-e27a5be47a4b11ef627e3b07ec5630568ef90b3b.zip
allow managers to set groups of a collection
fixes #2932
Diffstat (limited to 'src')
-rw-r--r--src/api/core/organizations.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/core/organizations.rs b/src/api/core/organizations.rs
index a7eb8db5..744b0a12 100644
--- a/src/api/core/organizations.rs
+++ b/src/api/core/organizations.rs
@@ -1748,7 +1748,7 @@ async fn _restore_organization_user(
}
#[get("/organizations/<org_id>/groups")]
-async fn get_groups(org_id: String, _headers: AdminHeaders, mut conn: DbConn) -> JsonResult {
+async fn get_groups(org_id: String, _headers: ManagerHeadersLoose, mut conn: DbConn) -> JsonResult {
let groups = Group::find_by_organization(&org_id, &mut conn).await.iter().map(Group::to_json).collect::<Value>();
Ok(Json(json!({