substitute set update with |=
[pithos] / snf-pithos-backend / pithos / backends / modular.py
index 8b6458f..967eb02 100644 (file)
@@ -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 []