FIX: Allow users to unsubscribe to digests while not logged in if

`login_required` is set to true.
This commit is contained in:
Robin Ward 2014-07-15 16:47:26 -04:00
parent d6589d4c53
commit e20a8e6dea
1 changed files with 1 additions and 0 deletions

View File

@ -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))