diff options
author | szaimen <szaimen@e.mail.de> | 2021-09-27 10:41:23 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-27 10:41:23 +0200 |
commit | 4009b3cc57170439f0aefc2cb141250feacf003a (patch) | |
tree | e3f6966919ec6b564950f42a3f12b90dc9d73726 | |
parent | 5cf9d7e2ea5db273a02abbd0a5eda72a54aee70f (diff) | |
parent | 504222af9998fd5bc0d182232f48a709df63224e (diff) | |
download | nextcloud-server-4009b3cc57170439f0aefc2cb141250feacf003a.tar.gz nextcloud-server-4009b3cc57170439f0aefc2cb141250feacf003a.zip |
Merge pull request #28963 from nextcloud/backport/28853/stable21
[stable21] Don't allow to change activity settings that don't work
-rw-r--r-- | apps/files/lib/Activity/Settings/FileFavoriteChanged.php | 8 |
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; } } |