mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +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:
parent
d6589d4c53
commit
e20a8e6dea
1 changed files with 1 additions and 0 deletions
|
@ -3,6 +3,7 @@ class EmailController < ApplicationController
|
||||||
layout 'no_js'
|
layout 'no_js'
|
||||||
|
|
||||||
before_filter :ensure_logged_in, only: :preferences_redirect
|
before_filter :ensure_logged_in, only: :preferences_redirect
|
||||||
|
skip_before_filter :redirect_to_login_if_required
|
||||||
|
|
||||||
def preferences_redirect
|
def preferences_redirect
|
||||||
redirect_to(email_preferences_path(current_user.username_lower))
|
redirect_to(email_preferences_path(current_user.username_lower))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue