nextcloud/apps/settings/lib
Daniel Calviño Sánchez 0dfd0ec77a Respect additional user settings not covered by the controller
"AccountManager::updateUser()" wipes previous user data with whichever
user data is given (except for some adjustments, like resetting the
verified status when needed). As the controller overrode the properties
those properties would lose some of their attributes even if they are
not affected by the changes made by the controller. Now the controller
only modifies the attributes set ("value" and "scope") to prevent that.

Note that with this change the controller no longer removes the
"verified" status, but this is not a problem because, as mentioned,
"AccountManager::updateUser()" resets them when needed (for example,
when the value of the website property changes).

This change is a previous step to fix overwritting properties with null
values, and it will prevent the controller from making unexpected
changes if more attributes are added in the future.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2021-04-23 16:53:56 +02:00
..
Activity Update license headers for 19 2020-04-29 11:57:22 +02:00
AppInfo App navigation via unified search 2020-08-05 16:42:36 +02:00
BackgroundJobs Format control structures, classes, methods and function 2020-04-10 14:19:56 +02:00
Controller Respect additional user settings not covered by the controller 2021-04-23 16:53:56 +02:00
Events emit typed event for user management 2020-09-08 22:50:05 +02:00
Mailer Set the user language when adding the footer 2021-01-08 10:09:41 +01:00
Middleware Update the license headers for Nextcloud 20 2020-08-24 14:54:25 +02:00
Search Update the license headers for Nextcloud 20 2020-08-24 14:54:25 +02:00
Sections Update the license headers for Nextcloud 19 2020-03-31 14:52:54 +02:00
Settings Set up FS before querying storage info in settings 2020-11-16 11:06:35 +00:00
SetupChecks Mention MariaDB in MySQL support warning 2021-04-21 14:45:41 +00:00
Hooks.php Update the license headers for Nextcloud 20 2020-08-24 14:54:25 +02:00