Don't allow to change activity settings that don't work

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2021-09-15 17:27:01 +02:00 committed by backportbot[bot]
parent 5cf9d7e2ea
commit 504222af99

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