From f91e053110ff0c740eb8c99e92e06ff40e6d34ee Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Mon, 4 May 2020 13:25:12 +0200 Subject: [PATCH] Block access to settings page to signed out users --- assets/js/pages/settings/main.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/assets/js/pages/settings/main.js b/assets/js/pages/settings/main.js index fce4fbd2..3f48ec24 100644 --- a/assets/js/pages/settings/main.js +++ b/assets/js/pages/settings/main.js @@ -14,6 +14,9 @@ ComunicWeb.pages.settings.main = { */ open: function(args, target){ + if(!signed_in()) + openPage("login"); + //Settings page is organized like an array with two columns //Left column : settings sections menu //Rigth column : current settings section