summaryrefslogtreecommitdiffstats
path: root/settings/Controller
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@owncloud.com>2016-04-21 11:19:10 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2016-11-21 11:29:38 +0100
commitd1233b47b0d96df364a1b5c043cabedc74d5eb01 (patch)
tree314e658c1c5f162ba197811225800f07074ac8c5 /settings/Controller
parent78f6e29954ed3c0e868d4eccdc95e4b6e8febdea (diff)
downloadnextcloud-server-d1233b47b0d96df364a1b5c043cabedc74d5eb01.tar.gz
nextcloud-server-d1233b47b0d96df364a1b5c043cabedc74d5eb01.zip
use PUT to update user settings
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'settings/Controller')
-rw-r--r--settings/Controller/UsersController.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/settings/Controller/UsersController.php b/settings/Controller/UsersController.php
index f06eabf6f96..7529cedd196 100644
--- a/settings/Controller/UsersController.php
+++ b/settings/Controller/UsersController.php
@@ -500,6 +500,7 @@ class UsersController extends Controller {
* @PasswordConfirmationRequired
*
* @param string $userId
+ * @param string $avatarScope
* @param string $displayname
* @param string $displaynameScope
* @param string $phone
@@ -512,7 +513,7 @@ class UsersController extends Controller {
* @param string $addressScope
* @return DataResponse
*/
- public function saveUserSettings($userId,
+ public function saveUserSettings($userId, $avatarScope,
$displayname, $displaynameScope,
$phone, $phoneScope,
$email, $emailScope,
@@ -524,6 +525,7 @@ class UsersController extends Controller {
'status' => 'success',
'data' => array(
'userId' => $userId,
+ 'avatarScope' => $avatarScope,
'displayname' => $displayname,
'displaynameScope' => 'public', // force value for test purposes
'email' => $email,