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

rely on constant in error message

ulferts05f45731504e
diff --git a/app/controllers/concerns/accounts/authorization.rb b/app/controllers/concerns/accounts/authorization.rb
index e4d12dcb353..afb6f4d6e3d 100644
--- a/app/controllers/concerns/accounts/authorization.rb
+++ b/app/controllers/concerns/accounts/authorization.rb
@@ -51,8 +51,9 @@ module Accounts::Authorization
raise <<-MESSAGE
Authorization check required for #{params[:action]} in #{self.class.name}.
- Use any method of 'authorize', 'authorize_global', 'authorize_in_optional_project'
- or 'require_admin' to ensure authorization. If authorization is checked by any other means,
+ Use any method of
+ #{METHODS_ENFORCING_AUTHORIZATION.join(', ')}
+ to ensure authorization. If authorization is checked by any other means,
affirm the same by calling 'authorization_checked!' in the controller. If the authorization does
not need to be checked for this action, affirm the same by calling 'no_authorization_required!'
MESSAGE