       'users.id' : user._id
     }, { $set : { 'users.$.approved' : yes } }
     , (err) =>
-      options = { action: 'approve', @uid, group: client?.context?.group, machineId: @getId() }
+      options = { action: 'approve', @uid, group: group.slug, machineId: @getId() }
       client.connection.delegate.sendNotification 'MachineShareActionTaken', options
       callback err
 

      permanent : yes

    @shareWith options, (err) =>
      options               = { action: 'deny', @uid, group: client?.context?.group, machineId: @getId() }
      [ owner ]             = @users.filter (user) -> return user.owner
      { notifyByUsernames } = require '../notify'



  , (client, callback) ->

    { r: { user, group } } = client

    # An owner cannot deny their own machine
    if isOwner user, this
