소스 검색

Closes #98: WebDAV: deleted file displayed

Bastien Sevajol (Algoo) 8 년 전
부모
커밋
6cdee81725
1개의 변경된 파일7개의 추가작업 그리고 1개의 파일을 삭제
  1. 7 1
      tracim/tracim/lib/webdav/sql_resources.py

+ 7 - 1
tracim/tracim/lib/webdav/sql_resources.py 파일 보기

@@ -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: