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

chore[Op#49396]: user new predicates

Kabiru Mwenja02331ac6dff8
diff --git a/app/controllers/oauth_clients_controller.rb b/app/controllers/oauth_clients_controller.rb
index dafe94fbfd7..d0234b45472 100644
--- a/app/controllers/oauth_clients_controller.rb
+++ b/app/controllers/oauth_clients_controller.rb
@@ -77,7 +77,7 @@ class OAuthClientsController < ApplicationController
handle_absent_oauth_client unless oauth_client
- connection_manager = OAuthClients::ConnectionManager.new(
+ OAuthClients::ConnectionManager.new(
user: User.current,
configuration: oauth_client.integration.oauth_configuration
)
@@ -88,7 +88,7 @@ class OAuthClientsController < ApplicationController
else
root_url
end
- if connection_manager.authorization_state == :connected
+ if connection_manager.authorization_state_connected?
redirect_to(destination_url)
else
nonce = SecureRandom.uuid