     .then ->
       if emitIfAuthenticated
         $rootScope.$broadcast "auth:#{eventToEmit}"
+        $q.reject()
     .catch ->
       if !emitIfAuthenticated
         $rootScope.$broadcast "auth:#{eventToEmit}"

    abstract      : true
    url           : '/users'
    templateUrl   : templateBreadcrumbs
    resolve       :
      auth: resolveAuthenticationAndEmitIf 'unauthorized', false
    ncyBreadcrumb :
      skip: true


    url           : '/list'
    templateUrl   : templateUsersList
    controller    : 'UsersListController'
    # resolve       :
    #   auth: resolveAuthenticationAndEmitIf 'unauthorized', false
    ncyBreadcrumb :
      label: 'Users'

