 
   _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: 'taskplans'
      student: 'viewStudentDashboard'
      default: 'app'
  cc_dashboard:
    label: 'Dashboard'

      _.chain(routes)
        .map((routeType) =>
          routeName = @_getRouteByRole(routeType, menuRole)

          if routeName?
            name: routeName
            params: @_getParamsForRoute(courseId, routeType, menuRole)
