From 61de8470b1d36a3646b56bad8ed33536df2c9f37 Mon Sep 17 00:00:00 2001
From: Arnaud Levy <contact@arnaudlevy.com>
Date: Fri, 15 Apr 2022 21:17:34 +0200
Subject: [PATCH] fix

---
 app/controllers/extranet/home_controller.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/controllers/extranet/home_controller.rb b/app/controllers/extranet/home_controller.rb
index d0b22af8f..ec6a69a8e 100644
--- a/app/controllers/extranet/home_controller.rb
+++ b/app/controllers/extranet/home_controller.rb
@@ -1,6 +1,6 @@
 class Extranet::HomeController < Extranet::ApplicationController
   def index
-    redirect_to admin_root_path unless current_extranet
+    return redirect_to admin_root_path unless current_extranet
     @cohorts = current_extranet.about&.cohorts || current_university.education_cohorts
     @cohorts = @cohorts.ordered.limit(5)
   end
-- 
GitLab