       machine.update { $set: { users: [owner] } }, callback
 
 
-  @stop = secure authenticated (client, fileId, workspace, callback) ->
+  @stop = secure authenticated (client, fileId, channelId, callback) ->
 
     getRealtimeDocument fileId, (err, doc) ->
 


google       = require 'googleapis'
google_utils = require 'koding-googleapis'

{ notifyByUsernames } = require './notify'


    return google_utils.authenticated options, method


  unshareMachine = (channelId, callback) ->

    JMachine.one { channelId }, (err, machine) ->
      owner = null

      for user in machine.users when user.sudo and user.owner
