 
         if asUser
         then @addUsers {targets, asOwner, permanent}, callback
-        else @removeUsers {targets, permanent}, callback
+        else @removeUsers {targets, permanent, inform}, callback
 
       else
         callback new KodingError "Target does not support machines."

      users = excludeUser { users, user, permanent }

    @update $set: { users }, (err)->
      informAccounts targets, @getAt 'uid'
      callback err


  shareWith: (options, callback)->

    { target, asUser, asOwner, permanent } = options

    asUser    ?= yes
    asOwner   ?= no

    unless target?
      return callback new KodingError "Target required."

    if isOwner user, this
      return callback null

    options =
      target    : [user.username]
      asUser    : no
      inform    : no
      permanent : yes

    @shareWith options, (err)->
      callback err
