commit e27a5be47a4b11ef627e3b07ec5630568ef90b3b
parent 7a7673103fb180098f18abe77b75ba085710b559
Author: Stefan Melmuk <stefan.melmuk@gmail.com>
Date: Wed, 23 Nov 2022 15:47:45 +0100
allow managers to set groups of a collection
fixes #2932
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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!({