Skip to content

Commit

Permalink
improv. remove inactive plugin from the navbar (#242)
Browse files Browse the repository at this point in the history
  • Loading branch information
nivcoo authored Dec 26, 2020
1 parent 9b4f03a commit 308f432
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Controller/AppController.php
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ function addToNav($menus, $nav, $index = 0)
// Handle plugins
$plugins = $this->EyPlugin->pluginsLoaded;
foreach ($plugins as $plugin) {
if (!isset($plugin->admin_menus))
if (!isset($plugin->admin_menus) || !$plugin->active)
continue;
$menus = json_decode(json_encode($plugin->admin_menus), true);
$nav = addToNav($menus, $nav);
Expand Down

0 comments on commit 308f432

Please sign in to comment.