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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
[#41480] valid check simplified
Eric Schubert01222cf193cf
diff --git a/lib/open_project/authentication/strategies/warden/doorkeeper_oauth.rb b/lib/open_project/authentication/strategies/warden/doorkeeper_oauth.rbindex 704a4ad151d..6f3b97f5abd 100644--- a/lib/open_project/authentication/strategies/warden/doorkeeper_oauth.rb+++ b/lib/open_project/authentication/strategies/warden/doorkeeper_oauth.rb@@ -9,9 +9,9 @@ module OpenProject#class DoorkeeperOAuth < ::Warden::Strategies::Basedef valid?- bearer_token = ::Doorkeeper::OAuth::Token.from_request(decorated_request,- *Doorkeeper.configuration.access_token_methods)- bearer_token != nil+ ::Doorkeeper::OAuth::Token+ .from_request(decorated_request, *Doorkeeper.configuration.access_token_methods)+ .present?enddef authenticate!