From e20a8e6dea60deb179093d2c98850d47d58c616c Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Tue, 15 Jul 2014 16:47:26 -0400 Subject: [PATCH] FIX: Allow users to unsubscribe to digests while not logged in if `login_required` is set to true. --- app/controllers/email_controller.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/controllers/email_controller.rb b/app/controllers/email_controller.rb index a3ba6705b53..08455702299 100644 --- a/app/controllers/email_controller.rb +++ b/app/controllers/email_controller.rb @@ -3,6 +3,7 @@ class EmailController < ApplicationController layout 'no_js' before_filter :ensure_logged_in, only: :preferences_redirect + skip_before_filter :redirect_to_login_if_required def preferences_redirect redirect_to(email_preferences_path(current_user.username_lower))