Skip to content

Commit 5285181

Browse files
committed
do not show email confirmation flash when logged out; ensure confirmation email sent to logged in user
1 parent cdf7aad commit 5285181

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/controllers/participants_controller.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ def new
1818
end
1919

2020
def show
21-
unless @participant.email_confirmed?
22-
flash[:alert] = email_confirmation_alert(@participant)
21+
if logged_in? && !current_participant.email_confirmed?
22+
flash[:alert] = email_confirmation_alert(current_participant)
2323
end
2424
respond_with(@participant)
2525
end

0 commit comments

Comments
 (0)