       unless isOwner user, this
         return callback new KodingError "Access denied"
 
-      { target } = options
+      { target, permanent } = options
 
       if target.length > 9
         return callback new KodingError \

  # .shareWith can be used like this:
  #
  # JMachineInstance.shareWith {
  #   asUser: yes, asOwner: no, target: ["gokmen", "dicle"]}, cb
  # }
  #                        user slugs ->  ^^^^^^ ,  ^^^^^

  shareWith$: permit 'populate users',


      if target instanceof JUser

        if asUser
        then @addUsers {targets, asOwner, permanent}, callback
        else @removeUsers targets, callback

      else
