hide inactive modules from dashboard

This commit is contained in:
Dennis Eichhorn 2020-02-02 21:10:00 +01:00
parent fe0006b93f
commit 620ae9cd08

View File

@ -68,6 +68,10 @@ final class BackendController extends Controller
$boardComponents = $board->getComponents();
foreach ($boardComponents as $component) {
if (!$this->app->moduleManager->isActive($component->getModule())) {
continue;
}
$module = $this->app->moduleManager->get($component->getModule());
if (!($module instanceof DashboardElementInterface)) {