Fix forgotten flag

This commit is contained in:
Alex Auvolat 2021-12-22 09:39:37 +01:00
parent 87121dce9d
commit b76d0580a0
No known key found for this signature in database
GPG Key ID: EDABF9711E244EB1

View File

@ -50,7 +50,7 @@ pub async fn handle_list_buckets(garage: &Garage, api_key: &Key) -> Result<Respo
.authorized_buckets .authorized_buckets
.items() .items()
.iter() .iter()
.filter(|(_, perms)| perms.allow_read || perms.allow_write) .filter(|(_, perms)| perms.allow_read || perms.allow_write || perms.allow_owner)
.map(|(id, _)| *id) .map(|(id, _)| *id)
.collect::<Vec<_>>(); .collect::<Vec<_>>();