add option to hide apps (big menu display)

This commit is contained in:
Simon Vieille
2020-11-03 12:16:36 +01:00
parent 10e90df4b8
commit 02825cee67
4 changed files with 41 additions and 2 deletions
+5
View File
@@ -97,6 +97,7 @@ class NavController extends Controller
$apps = $this->appRepository->getVisibleApps();
$currentLanguage = substr($this->l10nFactory->findLanguage(), 0, 2);
$externalSitesInTopMenu = $this->config->getAppValueBool('external-sites-in-top-menu', '0');
$hiddenApps = $this->config->getAppValueArray('big-menu-hidden-apps', '[]');
$user = OC::$server[IUserSession::class]->getUser();
$isForced = $this->config->getAppValueBool('force', '0');
$appsCategories = [];
@@ -142,6 +143,10 @@ class NavController extends Controller
continue;
}
if (in_array($app['id'], $hiddenApps)) {
continue;
}
$categories = (array) $app['category'];
$appsCategories[$app['id']] = [];