Skip to content

Commit

Permalink
Revert "Disable local accounts when Guisso is enabled"
Browse files Browse the repository at this point in the history
By disabling Devise registrations, the `edit_user_registration_path`
path no longer exists, crashing Resourcemap's menu when Guisso is not
enabled.

This reverts commit b92c98b.
(This partially reverts commit 3de250b,
part of PR #909)
  • Loading branch information
matiasgarciaisaia committed Feb 29, 2024
1 parent c5dcff3 commit bbc073c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
# We define here a route inside the locale thats just saves the current locale in the session
get 'omniauth/:provider' => 'omniauth#localized', as: :localized_omniauth

devise_for :users, skip: [ :omniauth_callbacks, ( :registrations if Guisso.enabled? ) ], controllers: {registrations: "registrations", sessions: 'sessions'}
devise_for :users, skip: :omniauth_callbacks, controllers: {registrations: "registrations", sessions: 'sessions'}
guisso_for :user

devise_scope :user do
Expand Down

0 comments on commit bbc073c

Please sign in to comment.