 
         queue = invitations.map (invitation) -> ->
 
-          { email, firstName, lastName } = invitation
+          { email, firstName, lastName, role } = invitation
 
           JInvitation.one { email, groupName }, (err, invitation) ->
             return callback new KodingError err  if err

                hash
                email
                groupName
              }
              # firstName and lastName are optional
              data.firstName = firstName  if firstName

      modifiedAt    :
        type        : Date
        default     : -> new Date
      role          :
        type        : String
        default     : -> 'member'

  accept$: secure (client, callback) ->
    { delegate } = client.connection
