aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosh <josh.t.richards@gmail.com>2025-07-02 12:58:29 -0400
committerGitHub <noreply@github.com>2025-07-02 12:58:29 -0400
commitfc6fb866d77447a3a5095f71396829b88e8f1a40 (patch)
treec988bd9d75561b238c8f2a553407d245ca27ea54
parent2337bd84c2f420b1944c3c1f4739ac0cfea15ca4 (diff)
downloadnextcloud-server-jtr-fix-files-reminders-disabled.tar.gz
nextcloud-server-jtr-fix-files-reminders-disabled.zip
fix(files_reminders): Don't load if disabled for userjtr-fix-files-reminders-disabled
Signed-off-by: Josh <josh.t.richards@gmail.com>
-rw-r--r--apps/files_reminders/lib/Listener/LoadAdditionalScriptsListener.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/files_reminders/lib/Listener/LoadAdditionalScriptsListener.php b/apps/files_reminders/lib/Listener/LoadAdditionalScriptsListener.php
index 13bf670f401..765bf1e3ce2 100644
--- a/apps/files_reminders/lib/Listener/LoadAdditionalScriptsListener.php
+++ b/apps/files_reminders/lib/Listener/LoadAdditionalScriptsListener.php
@@ -30,7 +30,9 @@ class LoadAdditionalScriptsListener implements IEventListener {
return;
}
- if (!$this->appManager->isEnabledForUser('notifications')) {
+ if (!$this->appManager->isEnabledForUser(Application::APP_ID)
+ || !$this->appManager->isEnabledForUser('notifications')
+ ) {
return;
}