 
   # Public(shared) static method to fetch domains
   # which points to given hostnameAlias
-  @fetchDomains$ = permit 'list all vms',
-    success:(client, hostnameAlias, callback)->
+  @fetchDomains$ = secure (client, hostnameAlias, callback)->
       {delegate} = client.connection
 
       delegate.fetchUser (err, user) ->

  #           return acc
  #       , @getUsageTemplate()

  # @calculateUsage$ = permit 'list all vms',
  #   success: (client, groupSlug, callback)->
  #     {delegate} = client.connection
  #     @calculateUsage delegate, groupSlug, callback


          return callback err  if err
          callback null, arr.map (vm)-> vm.hostnameAlias

  @fetchVmsByContext = secure (client, options, callback) ->
      {connection:{delegate}, context:{group}} = client
      JGroup = require './group'

