diff options
author | Arthur Schiwon <blizzz@owncloud.com> | 2014-02-18 14:34:08 +0100 |
---|---|---|
committer | Arthur Schiwon <blizzz@owncloud.com> | 2014-06-02 12:52:53 +0200 |
commit | dc28f589517e05ef29c6c06145ab4944c0aa2994 (patch) | |
tree | 644b62800222885f96d7c854cab11ad869f52198 /settings/ajax/createuser.php | |
parent | dc1523355b351cc0adf3e5893294cafe2651d8a0 (diff) | |
download | nextcloud-server-dc28f589517e05ef29c6c06145ab4944c0aa2994.tar.gz nextcloud-server-dc28f589517e05ef29c6c06145ab4944c0aa2994.zip |
add Storage Location col
Diffstat (limited to 'settings/ajax/createuser.php')
-rw-r--r-- | settings/ajax/createuser.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/settings/ajax/createuser.php b/settings/ajax/createuser.php index 94b56fa0349..946081e566a 100644 --- a/settings/ajax/createuser.php +++ b/settings/ajax/createuser.php @@ -43,12 +43,15 @@ try { OC_Group::addToGroup( $username, $i ); } + $userManager = \OC_User::getManager(); + $user = $userManager->get($username); OC_JSON::success(array("data" => array( // returns whether the home already existed "homeExists" => $homeExists, "username" => $username, - "groups" => OC_Group::getUserGroups( $username )))); + "groups" => OC_Group::getUserGroups( $username ), + 'storageLocation' => $user->getHome()))); } catch (Exception $exception) { OC_JSON::error(array("data" => array( "message" => $exception->getMessage()))); } |