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

set content secruity policy to post to Augur in all places we used common upsale

bsatarnejad4a8de44c77a2
diff --git a/app/controllers/custom_actions_controller.rb b/app/controllers/custom_actions_controller.rb
index fb18c69874c..3eace0778b2 100644
--- a/app/controllers/custom_actions_controller.rb
+++ b/app/controllers/custom_actions_controller.rb
@@ -29,13 +29,15 @@
#++
class CustomActionsController < ApplicationController
+ include EnterpriseTrialHelper
+ before_action :augur_content_security_policy
before_action :require_admin
before_action :require_enterprise_token
-
+
self._model_object = CustomAction
before_action :find_model_object, only: %i(edit update destroy)
before_action :pad_params, only: %i(create update)
-
+
layout 'admin'
def index
diff --git a/app/controllers/placeholder_users_controller.rb b/app/controllers/placeholder_users_controller.rb
index 14dbc204981..25937a917ed 100644
--- a/app/controllers/placeholder_users_controller.rb
+++ b/app/controllers/placeholder_users_controller.rb
@@ -29,8 +29,9 @@
#++
class PlaceholderUsersController < ApplicationController
+ include EnterpriseTrialHelper
layout 'admin'
-
+ before_action :augur_content_security_policy
before_action :authorize_global, except: %i[show]
before_action :find_placeholder_user, only: %i[show
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 318ff6ce727..ce828e230fa 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
@@ -1,9 +1,11 @@
module ::TeamPlanner
class TeamPlannerController < BaseController
+ include EnterpriseTrialHelper
before_action :find_optional_project
before_action :authorize, only: %i[index]
before_action :require_ee_token, only: %i[index]
before_action :redirect_to_first_plan, only: :index
+ before_action :augur_content_security_policy, only: :upsale
menu_item :team_planner_view
diff --git a/modules/two_factor_authentication/app/controllers/two_factor_authentication/two_factor_settings_controller.rb b/modules/two_factor_authentication/app/controllers/two_factor_authentication/two_factor_settings_controller.rb
index a12ad1e465a..c76b380bd8a 100644
--- a/modules/two_factor_authentication/app/controllers/two_factor_authentication/two_factor_settings_controller.rb
+++ b/modules/two_factor_authentication/app/controllers/two_factor_authentication/two_factor_settings_controller.rb
@@ -1,5 +1,7 @@
module ::TwoFactorAuthentication
class TwoFactorSettingsController < ApplicationController
+ include EnterpriseTrialHelper
+ before_action :augur_content_security_policy
before_action :require_admin
before_action :check_enabled
before_action :check_ee