From 81507ba58e19b4ff0665fb0c29736dce4e1ac687 Mon Sep 17 00:00:00 2001 From: Johan Cwiklinski Date: Sun, 20 Oct 2024 22:53:05 +0200 Subject: [PATCH 1/2] uperadmin cannot be localized; clses #1882 --- lib/GaletteMaps/PluginGaletteMaps.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/GaletteMaps/PluginGaletteMaps.php b/lib/GaletteMaps/PluginGaletteMaps.php index a07430e..a73c4d5 100644 --- a/lib/GaletteMaps/PluginGaletteMaps.php +++ b/lib/GaletteMaps/PluginGaletteMaps.php @@ -90,6 +90,10 @@ public static function getMyDashboardsContents(): array /** @var Login $login */ global $login; + if ($login->isSuperAdmin()) { + return []; + } + return [ [ 'label' => _T("My localization", "maps"), From 0270081bd17082e68fa16d9f9b17c81250af9f5b Mon Sep 17 00:00:00 2001 From: Johan Cwiklinski Date: Sun, 20 Oct 2024 22:54:08 +0200 Subject: [PATCH 2/2] Bump version --- _define.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_define.php b/_define.php index bf8e3e8..5359c1e 100644 --- a/_define.php +++ b/_define.php @@ -25,7 +25,7 @@ 'Galette Maps', //Name 'Maps features', //Short description 'Johan Cwiklinski', //Author - '2.1.1', //Version + '2.1.2', //Version '1.1.4', //Galette compatible version 'maps', //routing name and translation domain '2024-10-20', //Release date