diff options
author | Joas Schilling <coding@schilljs.com> | 2025-06-04 06:32:26 +0200 |
---|---|---|
committer | backportbot[bot] <backportbot[bot]@users.noreply.github.com> | 2025-06-06 08:44:02 +0000 |
commit | 21f9ea09deeefa2d960f90c2d3e7e141beedd3e5 (patch) | |
tree | 22ec1ae61bae28a8193ff3017d38e064d30c2a5e | |
parent | e8ee8d3a27f76825ce319b9c308a7a0a932f86d3 (diff) | |
download | nextcloud-server-backport/53314/stable30.tar.gz nextcloud-server-backport/53314/stable30.zip |
fix(notifications): Fix check for hasNotifiers when all apps use RegistrationContextbackport/53314/stable30
Signed-off-by: Joas Schilling <coding@schilljs.com>
-rw-r--r-- | lib/private/Notification/Manager.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/private/Notification/Manager.php b/lib/private/Notification/Manager.php index 8edbca0380d..266562d9ada 100644 --- a/lib/private/Notification/Manager.php +++ b/lib/private/Notification/Manager.php @@ -207,7 +207,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())); } /** |