mirror of
https://github.com/discourse/discourse.git
synced 2025-05-21 18:12:32 +08:00
FIX: Allow users to unsubscribe to digests while not logged in if
`login_required` is set to true.
This commit is contained in:
@ -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))
|
||||
|
Reference in New Issue
Block a user