 runMiddlewares       = require 'app/util/runMiddlewares'
 TestMachineMiddleware = require './middlewares/testmachine'
 
+whoami = require 'app/util/whoami'
 
 { actions : HomeActions } = require 'home/flux'
 require './config'

  sharingStackTemplate: (_id, type) ->
    remote.api.JStackTemplate.one { _id }, (err, template) ->
      template.setAccess type
  checkGroupStacks: ->

    @checkStackRevisions()


      groupsController.on 'StackTemplateChanged', @bound 'checkGroupStacks'
      groupsController.on 'StackAdminMessageCreated', @bound 'handleStackAdminMessageCreated'
      groupsController.on 'SetStackTemplateAccessLevel', @bound 'setStackTemplateAccessLevel'

      @fetchStacks =>

