Skip to content

Commit

Permalink
fix: Server menus permission check issue on regular users
Browse files Browse the repository at this point in the history
  • Loading branch information
dogukanoksuz committed Apr 16, 2024
1 parent 7f66264 commit 4f8e533
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/Http/Controllers/API/MenuController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 4f8e533

Please sign in to comment.