From 4f8e53346da34928e0857c09133455bc351a467a Mon Sep 17 00:00:00 2001 From: dogukanoksuz Date: Tue, 16 Apr 2024 13:13:04 +0000 Subject: [PATCH] fix: Server menus permission check issue on regular users --- app/Http/Controllers/API/MenuController.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Http/Controllers/API/MenuController.php b/app/Http/Controllers/API/MenuController.php index 618a6cfc..ceab2446 100644 --- a/app/Http/Controllers/API/MenuController.php +++ b/app/Http/Controllers/API/MenuController.php @@ -60,6 +60,7 @@ public function serverDetails(Server $server) $server->is_online = $server->isOnline(); $server->extensions = $server->extensions()->map(function ($extension) use ($server) { $db = getExtensionJson($extension->name); + $db['name'] = strtolower($extension->name); if (isset($db['menus']) && $db['menus']) { $extension->menus = $this->checkMenu($db['menus'], $db['name']); } else {