Commit 1b990d187fd254294d75af19451ed823aa8f0935

Authored by Rodrigo Souto
1 parent 318eef83

view-page: avoid multiple render

app/controllers/public/content_viewer_controller.rb
@@ -33,6 +33,7 @@ class ContentViewerController < ApplicationController @@ -33,6 +33,7 @@ class ContentViewerController < ApplicationController
33 process_forum_terms_of_use(user, params[:terms_accepted]) 33 process_forum_terms_of_use(user, params[:terms_accepted])
34 elsif is_a_forum_topic?(@page) 34 elsif is_a_forum_topic?(@page)
35 redirect_to @page.parent.url unless @page.parent.agrees_with_terms?(user) 35 redirect_to @page.parent.url unless @page.parent.agrees_with_terms?(user)
  36 + return
36 end 37 end
37 38
38 # At this point the page will be showed 39 # At this point the page will be showed