mirror of
https://github.com/Karaka-Management/oms-Dashboard.git
synced 2026-01-11 17:38:41 +00:00
hide inactive modules from dashboard
This commit is contained in:
parent
fe0006b93f
commit
620ae9cd08
|
|
@ -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)) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user