aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2025-06-04 06:32:26 +0200
committerJoas Schilling <coding@schilljs.com>2025-06-04 06:32:26 +0200
commit656dc478e57b1cd3673d1e1e48e574f6af663a32 (patch)
tree4941c715866c3376ddceeefb1e45ee48eb11a8df
parentaef905a13bc426e4f4898f46997977d4907bc1b6 (diff)
downloadnextcloud-server-bugfix/53157/fix-hasNotifier-check.tar.gz
nextcloud-server-bugfix/53157/fix-hasNotifier-check.zip
fix(notifications): Fix check for hasNotifiers when all apps use RegistrationContextbugfix/53157/fix-hasNotifier-check
Signed-off-by: Joas Schilling <coding@schilljs.com>
-rw-r--r--lib/private/Notification/Manager.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/private/Notification/Manager.php b/lib/private/Notification/Manager.php
index b75e52deacb..8c457db8beb 100644
--- a/lib/private/Notification/Manager.php
+++ b/lib/private/Notification/Manager.php
@@ -217,7 +217,9 @@ class Manager implements IManager {
* @since 8.2.0
*/
public function hasNotifiers(): bool {
- return !empty($this->notifiers) || !empty($this->notifierClasses);
+ return !empty($this->notifiers)
+ || !empty($this->notifierClasses)
+ || (!$this->parsedRegistrationContext && !empty($this->coordinator->getRegistrationContext()->getNotifierServices()));
}
/**