           createInvites hasAdminRights = no
 
 
+  prepareInvitationCodes = (codes) ->
+
+    extractData = ['_id', 'inviterId', 'groupName', 'email', 'role', 'firstName', 'lastName', 'status', 'code']
+    codes.map (code) ->  _.pick code, extractData
+
+
   @canFetchInvitationsAsSuperAdmin: permit
     advanced: [ { permission: 'remove invitation', superadmin: yes } ]
 

            return callback err  if err

            unless returnCodes
              data = { type: 'create', invitations: codes }

              return notifyGroupOnInvitationChange groupName, data, callback


KodingError = require '../error'
{ extend }  = require 'underscore'
async       = require 'async'
_           = require 'lodash'
{ protocol, hostname } = KONFIG
{ secure, signature } = Bongo

