summaryrefslogtreecommitdiffstats
path: root/settings/ajax/createuser.php
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@owncloud.com>2014-02-18 14:34:08 +0100
committerArthur Schiwon <blizzz@owncloud.com>2014-06-02 12:52:53 +0200
commitdc28f589517e05ef29c6c06145ab4944c0aa2994 (patch)
tree644b62800222885f96d7c854cab11ad869f52198 /settings/ajax/createuser.php
parentdc1523355b351cc0adf3e5893294cafe2651d8a0 (diff)
downloadnextcloud-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.php5
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())));
}