Browse Source

#185 fake-api redundancies fixed

Alexis CLEMENT 8 years ago
parent
commit
031a61b7cc
1 changed files with 0 additions and 4 deletions
  1. 0 4
      tracim/tracim/controllers/workspace.py

+ 0 - 4
tracim/tracim/controllers/workspace.py View File

@@ -69,10 +69,6 @@ class UserWorkspaceRestController(TIMRestController):
69 69
         show_archived = str_as_bool(kwargs.get('show_archived', ''))
70 70
         user = tmpl_context.current_user
71 71
 
72
-        current_user_content = Context(CTX.CURRENT_USER).toDict(user)
73
-        fake_api = Context(CTX.CURRENT_USER).toDict({
74
-            'current_user': current_user_content})
75
-
76 72
         unread_contents = ContentApi(user).get_last_unread(None,
77 73
                                                            ContentType.Any,
78 74
                                                            None)