 
   @fetchEnvironment$ = secure (client, callback) ->
 
-    data = own: []
+    data =
+      own: []
+      shared: []
 
     client.connection.delegate.fetchUser (err, user) ->
 

  isMachineShared = (user, machine) ->

    for u in machine.users
      if u.id.equals user.getId() and u.permanent
        return yes

    return no

      addNodeFn = switch
        when isMachineOwner user, machine
          addOwnFn
        when isMachineShared user, machine
          addSharedFn

      addNodeFn {machine}

