X-Git-Url: https://code.grnet.gr/git/pithos/blobdiff_plain/b82d327704c2498e4483274fa2a7e74b28a67689..778318d1090e7002194865545e9e4af8b9443ce2:/snf-pithos-backend/pithos/backends/modular.py diff --git a/snf-pithos-backend/pithos/backends/modular.py b/snf-pithos-backend/pithos/backends/modular.py index 8b6458f..967eb02 100644 --- a/snf-pithos-backend/pithos/backends/modular.py +++ b/snf-pithos-backend/pithos/backends/modular.py @@ -547,9 +547,9 @@ class ModularBackend(BaseBackend): else: allowed = set() if shared: - allowed.update(self.permissions.access_list_shared(path)) + allowed |= set(self.permissions.access_list_shared(path)) if public: - allowed.update([x[0] for x in self.permissions.public_list(path)]) + allowed |= set([x[0] for x in self.permissions.public_list(path)]) allowed = sorted(allowed) if not allowed: return []