Skip to content

Commit

Permalink
Merge pull request #825 from nextcloud/no-app-hint-if-no-appstore
Browse files Browse the repository at this point in the history
feat(app-hints): Avoid sending app hints if the appstore is disabled
  • Loading branch information
ChristophWurst authored Feb 9, 2023
2 parents 29e32ba + c4bac57 commit 5469e64
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/Listener/BeforeTemplateRenderedListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,10 @@ public function handle(Event $event): void {

$this->jobList->add('OCA\FirstRunWizard\Notification\BackgroundJob', ['uid' => $this->userSession->getUser()->getUID()]);
}
$this->appHint->sendAppHintNotifications();

if ($this->config->getSystemValueBool('appstoreenabled', true)) {
$this->appHint->sendAppHintNotifications();
}

Util::addScript(Application::APP_ID, 'about');
}
Expand Down

0 comments on commit 5469e64

Please sign in to comment.