diff --git a/app/controllers/devise/invitations_controller.rb b/app/controllers/devise/invitations_controller.rb index 888bd78c..b73c2874 100644 --- a/app/controllers/devise/invitations_controller.rb +++ b/app/controllers/devise/invitations_controller.rb @@ -51,7 +51,7 @@ def update yield resource if block_given? if invitation_accepted - if Devise.allow_insecure_sign_in_after_accept + if resource.allow_insecure_sign_in_after_accept flash_message = resource.active_for_authentication? ? :updated : :updated_not_active set_flash_message :notice, flash_message if is_flashing_format? sign_in(resource_name, resource)