 
       callback KD.userWorkspaces.filter (workspace) ->
         originId is workspace.originId
+
+
+  filterOwnWorkspaces = (callback) ->
+
+    callback KD.userWorkspaces.filter (workspace) ->
+      workspace.originId is KD.whoami()._id
 
 
   selectWorkspaceOnSidebar = (data) ->


    if username
    then filterWorkspacesByUsername username, kallback
    else kallback KD.userWorkspaces


  filterWorkspacesByUsername = (username, callback) ->

    '/:name?/IDE/:machineLabel/:workspaceSlug': (routeInfo) ->

      {params} = routeInfo

      refreshWorkspaces ->

