   isMachineShared = (user, machine) ->
 
     for u in machine.users
-      if u.id.equals user.getId() and u.permanent
+      if (u.id.equals user.getId()) and u.permanent
         return yes
 
     return no

      addNodeFn = switch
        when isMachineOwner user, machine
          addOwnFn

      addNodeFn {machine}



  @fetchEnvironment$ = secure (client, callback) ->

    data =
      own: []
      shared: []

    client.connection.delegate.fetchUser (err, user) ->

