       _.chain(routes)
         .map((routeType) =>
           routeName = @_getRouteByRole(routeType, menuRole)
+
           if routeName?
             name: routeName
             params: @_getParamsForRoute(courseId, routeType, menuRole)


  _getRouteByRole: (routeType, menuRole) ->
    ROUTES[routeType].roles[menuRole] or ROUTES[routeType].roles.default
  _getParamsForRoute: (courseId, routeType, menuRole) ->
    if _.isFunction(ROUTES[routeType].params)
      ROUTES[routeType].params(courseId, menuRole)

    label: 'Dashboard'
    allowedForCourse: (course) -> not course?.is_concept_coach is true
    roles:
      teacher: 'dashboard'
      student: 'dashboard'
      default: 'app'
  cc_dashboard:
    label: 'Dashboard'
