userSession->getUser(); if ($user === null || !$user->isAdmin()) { return []; } return [ [ 'id' => 'nc_bot_webhooks', 'app_id' => 'nc_bot_webhooks', 'type' => 'settings', 'name' => $this->l10n->t('nc_bot_webhooks'), 'href' => $this->urlGenerator->linkToRoute('settings.AdminSettings#index'), 'icon' => $this->urlGenerator->imagePath('nc_bot_webhooks', 'app.svg'), 'order' => 0, ], ]; } }