     return owner
 
 
-  excludeUser = (options)->
+  excludeUser = (options) ->
 
     { users, user, permanent } = options
 

  # Helpers
  # -------

  generateSlugFromLabel = ({user, group, label, index}, callback)->

    slug = _label = if index? then "#{label}-#{index}" else label
    slug = slugify slug

    JMachine.count {
      users : $elemMatch: id: user.getId()
      groups: $elemMatch: id: group.getId()
      slug
    }, (err, count)->

      return callback err  if err?

      if count is 0
        callback null, {slug, label: _label}
      else
        index ?= 0
        index += 1
        generateSlugFromLabel {user, group, label, index}, callback


  isOwner  = (user, machine) ->

    shouldReviveProvider : no
    hasOptions           : no

  , (client, callback) ->

    { r: { user } } = client

