Skip to content

Commit 1ffa93b

Browse files
committed
Superadmin cannot have cars
1 parent bc37e31 commit 1ffa93b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

lib/GaletteAuto/PluginGaletteAuto.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,13 @@ public static function getPublicMenusItemsList(): array
146146
*/
147147
public static function getMyDashboardsContents(): array
148148
{
149+
/** @var Login $login */
150+
global $login;
151+
152+
if ($login->isSuperAdmin()) {
153+
return [];
154+
}
155+
149156
return [
150157
[
151158
'label' => _T("My cars", "auto"),

0 commit comments

Comments
 (0)