From 1b990d187fd254294d75af19451ed823aa8f0935 Mon Sep 17 00:00:00 2001 From: Rodrigo Souto Date: Thu, 3 Jul 2014 20:59:43 +0000 Subject: [PATCH] view-page: avoid multiple render --- app/controllers/public/content_viewer_controller.rb | 1 + 1 file changed, 1 insertion(+), 0 deletions(-) diff --git a/app/controllers/public/content_viewer_controller.rb b/app/controllers/public/content_viewer_controller.rb index f5bccbb..4334747 100644 --- a/app/controllers/public/content_viewer_controller.rb +++ b/app/controllers/public/content_viewer_controller.rb @@ -33,6 +33,7 @@ class ContentViewerController < ApplicationController process_forum_terms_of_use(user, params[:terms_accepted]) elsif is_a_forum_topic?(@page) redirect_to @page.parent.url unless @page.parent.agrees_with_terms?(user) + return end # At this point the page will be showed -- libgit2 0.21.2