Demo Mode cannot install plugin from url as it Security risk

This commit is contained in:
Ibnu Maksum 2024-06-27 10:21:38 +07:00
parent 95c8bdcc53
commit 4ff45e8de7
No known key found for this signature in database
GPG Key ID: 7FC82848810579E5

View File

@ -38,6 +38,9 @@ switch ($action) {
r2(U . "pluginmanager", 's', 'Refresh success'); r2(U . "pluginmanager", 's', 'Refresh success');
break; break;
case 'dlinstall': case 'dlinstall':
if($_app_stage == 'demo'){
r2(U . "pluginmanager", 'e', 'Demo Mode cannot install as it Security risk');
}
if (!is_writeable($CACHE_PATH)) { if (!is_writeable($CACHE_PATH)) {
r2(U . "pluginmanager", 'e', 'Folder cache/ is not writable'); r2(U . "pluginmanager", 'e', 'Folder cache/ is not writable');
} }