 
     @skip += members.length
 
-    for member in members
-      member.loggedInUserRoles = loggedInUserRoles # FIXME
-      @listController.addItem member
+    @fetchUserRoles members, (members) =>
+      for member in members
+        member.loggedInUserRoles = @loggedInUserRoles # FIXME
+        @listController.addItem member
 
     @listController.lazyLoader.hide()
     @searchContainer.show()

    group    = @getData()
    options  =
      limit  : @getOptions().itemLimit
      # sort   : timestamp: -1 # timestamp is at relationship collection
      skip   : @skip

    # fetch members as jAccount


  search: ->

    query = @searchInput.getValue()


    if query is ''
      @page = 0
      @skip = 0
      @resetListItems()
      return @fetchMembers()

    @page      = 0  if query isnt @lastQuery
    options    = { @page, restrictSearchableAttributes: [ 'nick', 'email' ] }
    @lastQuery = query

    kd.singletons.search.searchAccounts query, options
      .then (accounts) =>
        @resetListItems no  if @page is 0
        @listMembers accounts
        @isFetching = no
      .catch (err) =>
        @page = 0
        @handleError err


  resetListItems: (showLoader = yes) ->

    @listController.removeAllItems()
    @listController.lazyLoader.show()


  refresh: ->

    @resetListItems()
    @fetchMembers()
