commit bda123b1eb527067038349cc6ad64add1bc678c5
parent 0a5df06e77fb2359dbe0496e1e669e6d5b42cde5
Author: Daniel GarcĂa <dani-garcia@users.noreply.github.com>
Date: Fri, 24 Dec 2021 20:40:07 +0100
Merge pull request #2169 from BlackDex/issue-2151
Fixed #2151
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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<Value> {
}
#[get("/organizations/<org_id>/collections")]
-fn get_org_collections(org_id: String, _headers: AdminHeaders, conn: DbConn) -> Json<Value> {
+fn get_org_collections(org_id: String, _headers: ManagerHeadersLoose, conn: DbConn) -> Json<Value> {
Json(json!({
"Data":
Collection::find_by_organization(&org_id, &conn)