From e27a5be47a4b11ef627e3b07ec5630568ef90b3b Mon Sep 17 00:00:00 2001 From: Stefan Melmuk Date: Wed, 23 Nov 2022 15:47:45 +0100 Subject: [PATCH] allow managers to set groups of a collection fixes #2932 --- src/api/core/organizations.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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//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::(); Ok(Json(json!({