Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

chore(storage): remove unused storage_grants module

Steven Enamakel9f675566efe5
diff --git a/crates/openhuman-core/src/modules/storage_grants.rs b/crates/openhuman-core/src/modules/storage_grants.rs
index 79172f9467..7e7a226f61 100644
--- a/crates/openhuman-core/src/modules/storage_grants.rs
+++ b/crates/openhuman-core/src/modules/storage_grants.rs
@@ -269,13 +269,9 @@ fn documents(grant: &StorageGrant, selector: &str, request: &Value) -> Result<Pl
"DropCollection" => Err(Denied::Schema),
"Collections" => {
// Listing is filtered, not refused: a module sees its own names.
- text(request, "prefix").map(|_| ()).or_else(|_| {
- request
- .as_object()
- .filter(|fields| fields.is_empty())
- .map(|_| ())
- .ok_or(Denied::Malformed)
- })?;
+ if !request.is_object() {
+ return Err(Denied::Malformed);
+ }
Ok(Plan::Forward {
target: String::new(),
filter: ReplyFilter::GrantedCollections,