We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e4b8be8 commit 9be1774Copy full SHA for 9be1774
1 file changed
app/controllers/terms_and_conditions_controller.rb
@@ -1,5 +1,8 @@
1
class TermsAndConditionsController < ApplicationController
2
- before_action :logged_in?
+ # Skip accept_terms (from ApplicationController) to avoid an infinite redirect loop:
3
+ # - If user hasn't accepted T&C, ApplicationController already redirects here
4
+ # - If user has accepted, there's no reason to redirect away from this page
5
+ # The view handles both cases (needs to accept vs already accepted)
6
skip_before_action :accept_terms
7
8
def show
0 commit comments