summaryrefslogtreecommitdiffstats
path: root/apps/files/lib
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2021-09-15 17:27:01 +0200
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2021-09-27 06:21:46 +0000
commit504222af9998fd5bc0d182232f48a709df63224e (patch)
treee3f6966919ec6b564950f42a3f12b90dc9d73726 /apps/files/lib
parent5cf9d7e2ea5db273a02abbd0a5eda72a54aee70f (diff)
downloadnextcloud-server-504222af9998fd5bc0d182232f48a709df63224e.tar.gz
nextcloud-server-504222af9998fd5bc0d182232f48a709df63224e.zip
Don't allow to change activity settings that don't work
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/files/lib')
-rw-r--r--apps/files/lib/Activity/Settings/FileFavoriteChanged.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/apps/files/lib/Activity/Settings/FileFavoriteChanged.php b/apps/files/lib/Activity/Settings/FileFavoriteChanged.php
index d0bba21cf9b..d71c9f744a0 100644
--- a/apps/files/lib/Activity/Settings/FileFavoriteChanged.php
+++ b/apps/files/lib/Activity/Settings/FileFavoriteChanged.php
@@ -72,7 +72,11 @@ class FileFavoriteChanged extends FileActivitySettings {
* @since 11.0.0
*/
public function canChangeMail() {
- return true;
+ return false;
+ }
+
+ public function canChangeNotification() {
+ return false;
}
/**
@@ -84,6 +88,6 @@ class FileFavoriteChanged extends FileActivitySettings {
}
public function isDefaultEnabledNotification() {
- return true;
+ return false;
}
}