From 4ff45e8de7d72466f9a55afcc76aee6d31ad9ddc Mon Sep 17 00:00:00 2001 From: Ibnu Maksum Date: Thu, 27 Jun 2024 10:21:38 +0700 Subject: [PATCH] Demo Mode cannot install plugin from url as it Security risk --- system/controllers/pluginmanager.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/system/controllers/pluginmanager.php b/system/controllers/pluginmanager.php index f6a1b5d0..76403838 100644 --- a/system/controllers/pluginmanager.php +++ b/system/controllers/pluginmanager.php @@ -38,6 +38,9 @@ switch ($action) { r2(U . "pluginmanager", 's', 'Refresh success'); break; case 'dlinstall': + if($_app_stage == 'demo'){ + r2(U . "pluginmanager", 'e', 'Demo Mode cannot install as it Security risk'); + } if (!is_writeable($CACHE_PATH)) { r2(U . "pluginmanager", 'e', 'Folder cache/ is not writable'); }