Browse Source

Closes #98: WebDAV: deleted file displayed

Bastien Sevajol (Algoo) 8 years ago
parent
commit
6cdee81725
1 changed files with 7 additions and 1 deletions
  1. 7 1
      tracim/tracim/lib/webdav/sql_resources.py

+ 7 - 1
tracim/tracim/lib/webdav/sql_resources.py View File

@@ -451,8 +451,14 @@ class Folder(Workspace):
451 451
 
452 452
     def getMemberList(self) -> [_DAVResource]:
453 453
         members = []
454
+        content_api = ContentApi(self.user)
455
+        visible_children = content_api.get_all(
456
+            self.content.content_id,
457
+            ContentType.Any,
458
+            self.workspace,
459
+        )
454 460
 
455
-        for content in self.content.children:
461
+        for content in visible_children:
456 462
             content_path = '%s/%s' % (self.path, self.provider.transform_to_display(content.get_label()))
457 463
 
458 464
             if content.type == ContentType.Folder: