Commit 1b990d187fd254294d75af19451ed823aa8f0935
1 parent
318eef83
Exists in
master
and in
22 other branches
view-page: avoid multiple render
Showing
1 changed file
with
1 additions
and
0 deletions
Show diff stats
app/controllers/public/content_viewer_controller.rb
... | ... | @@ -33,6 +33,7 @@ class ContentViewerController < ApplicationController |
33 | 33 | process_forum_terms_of_use(user, params[:terms_accepted]) |
34 | 34 | elsif is_a_forum_topic?(@page) |
35 | 35 | redirect_to @page.parent.url unless @page.parent.agrees_with_terms?(user) |
36 | + return | |
36 | 37 | end |
37 | 38 | |
38 | 39 | # At this point the page will be showed | ... | ... |