mirror of
https://github.com/nextcloud/server.git
synced 2026-06-10 17:23:59 -04:00
Don't provide favorite activity settings
Since mails and notifications are only available for actions of other users it does not make sense to allow changing this. It also prevents the common misunderstanding with "file was changed inside a favorited folder" Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
a353db2c31
commit
1ab0ed8134
1 changed files with 10 additions and 2 deletions
|
|
@ -55,7 +55,7 @@ class FavoriteAction extends FileActivitySettings {
|
|||
* @since 11.0.0
|
||||
*/
|
||||
public function canChangeStream() {
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -71,7 +71,7 @@ class FavoriteAction extends FileActivitySettings {
|
|||
* @since 11.0.0
|
||||
*/
|
||||
public function canChangeMail() {
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -81,4 +81,12 @@ class FavoriteAction extends FileActivitySettings {
|
|||
public function isDefaultEnabledMail() {
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return bool True when the option can be changed for the notification
|
||||
* @since 20.0.0
|
||||
*/
|
||||
public function canChangeNotification() {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue