From 038e0159c0b2d140e4f75f17566dfe2d2a0cc977 Mon Sep 17 00:00:00 2001 From: Antony Chazapis Date: Wed, 31 Aug 2011 17:34:36 +0300 Subject: [PATCH] Fix shared listings. --- pithos/backends/modular.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pithos/backends/modular.py b/pithos/backends/modular.py index 32f1e93..0ffcb70 100644 --- a/pithos/backends/modular.py +++ b/pithos/backends/modular.py @@ -363,6 +363,8 @@ class ModularBackend(BaseBackend): else: if shared: allowed = self.permissions.access_list_shared('/'.join((account, container))) + if not allowed: + return [] path, node = self._lookup_container(account, container) return self._list_objects(node, path, prefix, delimiter, marker, limit, virtual, keys, until, allowed) -- 1.7.10.4