Fix Core's OCSController response

This commit is contained in:
Roeland Jago Douma 2016-08-10 20:53:13 +02:00
parent 4006763f5b
commit 9544c97ffe
No known key found for this signature in database
GPG Key ID: 1E152838F164D13B
1 changed files with 2 additions and 2 deletions

View File

@ -69,7 +69,7 @@ class OCSController extends \OCP\AppFramework\OCSController {
$result['capabilities'] = $this->capabilitiesManager->getCapabilities();
return new DataResponse(['data' => $result]);
return new DataResponse($result);
}
/**
@ -83,6 +83,6 @@ class OCSController extends \OCP\AppFramework\OCSController {
'display-name' => $userObject->getDisplayName(),
'email' => $userObject->getEMailAddress(),
];
return new DataResponse(['data' => $data]);
return new DataResponse($data);
}
}