From 4bd8eae07e7e76fc35a0adf02f01bb3df5e446f5 Mon Sep 17 00:00:00 2001 From: BlackDex Date: Fri, 24 Dec 2021 17:59:12 +0100 Subject: [PATCH] Fixed #2151 --- 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 6b6d4547..fa79c39c 100644 --- a/src/api/core/organizations.rs +++ b/src/api/core/organizations.rs @@ -235,7 +235,7 @@ fn get_user_collections(headers: Headers, conn: DbConn) -> Json { } #[get("/organizations//collections")] -fn get_org_collections(org_id: String, _headers: AdminHeaders, conn: DbConn) -> Json { +fn get_org_collections(org_id: String, _headers: ManagerHeadersLoose, conn: DbConn) -> Json { Json(json!({ "Data": Collection::find_by_organization(&org_id, &conn)