Browse Source

allow get deleted or archived content for all folder endpoints

Guénaël Muller 6 years ago
parent
commit
3143b6d430
1 changed files with 8 additions and 0 deletions
  1. 8 0
      backend/tracim_backend/views/contents_api/folder_controller.py

+ 8 - 0
backend/tracim_backend/views/contents_api/folder_controller.py View File

@@ -45,6 +45,8 @@ class FolderController(Controller):
45 45
         """
46 46
         app_config = request.registry.settings['CFG']
47 47
         api = ContentApi(
48
+            show_archived=True,
49
+            show_deleted=True,
48 50
             current_user=request.current_user,
49 51
             session=request.dbsession,
50 52
             config=app_config,
@@ -68,6 +70,8 @@ class FolderController(Controller):
68 70
         """
69 71
         app_config = request.registry.settings['CFG']
70 72
         api = ContentApi(
73
+            show_archived=True,
74
+            show_deleted=True,
71 75
             current_user=request.current_user,
72 76
             session=request.dbsession,
73 77
             config=app_config,
@@ -110,6 +114,8 @@ class FolderController(Controller):
110 114
         """
111 115
         app_config = request.registry.settings['CFG']
112 116
         api = ContentApi(
117
+            show_archived=True,
118
+            show_deleted=True,
113 119
             current_user=request.current_user,
114 120
             session=request.dbsession,
115 121
             config=app_config,
@@ -136,6 +142,8 @@ class FolderController(Controller):
136 142
         """
137 143
         app_config = request.registry.settings['CFG']
138 144
         api = ContentApi(
145
+            show_archived=True,
146
+            show_deleted=True,
139 147
             current_user=request.current_user,
140 148
             session=request.dbsession,
141 149
             config=app_config,