Merge pull request #28963 from nextcloud/backport/28853/stable21

[stable21] Don't allow to change activity settings that don't work
This commit is contained in:
szaimen 2021-09-27 10:41:23 +02:00 committed by GitHub
commit 4009b3cc57
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
}
}