Browse Source

workspace user: use wapi function instead of creating object

Guénaël Muller 6 years ago
parent
commit
2e8ea5d73f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tracim/views/core_api/user_controller.py

+ 1 - 1
tracim/views/core_api/user_controller.py View File

@@ -42,7 +42,7 @@ class UserController(Controller):
42 42
         
43 43
         workspaces = wapi.get_all_for_user(request.candidate_user)
44 44
         return [
45
-            WorkspaceInContext(workspace, request.dbsession, app_config)
45
+            wapi.get_workspace_with_context(workspace)
46 46
             for workspace in workspaces
47 47
         ]
48 48