From 58af4fd1212c37f345d33f1e56ad1da8109eb884 Mon Sep 17 00:00:00 2001 From: TrystanLea Date: Tue, 27 Jul 2021 08:20:00 +0000 Subject: [PATCH] restrict access if not emoncms_exec --- Views/dashboard_config.php | 1 + Views/dashboard_edit_view.php | 3 +- Views/dashboard_list.old.php | 125 ---------------------------------- Views/dashboard_list.php | 4 ++ Views/dashboard_menu.php | 19 ------ Views/dashboard_view.php | 1 + Views/loadwidgets.php | 2 + dashboard | 1 - module.json | 2 +- 9 files changed, 11 insertions(+), 147 deletions(-) delete mode 100644 Views/dashboard_list.old.php delete mode 120000 dashboard diff --git a/Views/dashboard_config.php b/Views/dashboard_config.php index 97d3260..503bfb3 100644 --- a/Views/dashboard_config.php +++ b/Views/dashboard_config.php @@ -9,6 +9,7 @@ http://openenergymonitor.org */ global $path; + defined('EMONCMS_EXEC') or die('Restricted access'); ?>