issue #1852 also forbid extension deletion

This commit is contained in:
plegall
2023-01-25 15:18:45 +01:00
parent 6d416c5d6f
commit 0b9e177782
10 changed files with 39 additions and 5 deletions
+5
View File
@@ -88,6 +88,11 @@ class themes
{
global $conf;
if (!$conf['enable_extensions_install'] and 'delete' == $action)
{
die('Piwigo extensions install/update/delete system is disabled');
}
if (isset($this->db_themes_by_id[$theme_id]))
{
$crt_db_theme = $this->db_themes_by_id[$theme_id];