Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Correctly display upsale page

Klaus Zanders1c55909c41c5
diff --git a/modules/team_planner/app/controllers/team_planner/team_planner_controller.rb b/modules/team_planner/app/controllers/team_planner/team_planner_controller.rb
index b9cf37bff49..68046edf67c 100644
--- a/modules/team_planner/app/controllers/team_planner/team_planner_controller.rb
+++ b/modules/team_planner/app/controllers/team_planner/team_planner_controller.rb
@@ -2,7 +2,7 @@ module ::TeamPlanner
class TeamPlannerController < BaseController
include EnterpriseTrialHelper
before_action :find_optional_project
- before_action :authorize, except: %i[overview]
+ before_action :authorize, except: %i[overview upsale]
before_action :authorize_global, only: %i[overview]
before_action :require_ee_token, except: %i[upsale]
before_action :find_plan_view, only: %i[destroy]
diff --git a/modules/team_planner/config/routes.rb b/modules/team_planner/config/routes.rb
index 8bc6ff0d852..895a85e0eca 100644
--- a/modules/team_planner/config/routes.rb
+++ b/modules/team_planner/config/routes.rb
@@ -1,5 +1,6 @@
OpenProject::Application.routes.draw do
get :team_planners, to: 'team_planner/team_planner#overview'
+ get 'team_planners/upsale', to: 'team_planner/team_planner#upsale', as: :upsale_team_planners
scope 'projects/:project_id', as: 'project' do
resources :team_planners,