Replace OCSController with OCP\API

Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
This commit is contained in:
Daniel Kesselberg 2021-06-02 15:07:46 +02:00
parent 25c24c2b6e
commit 5740a6bf2b
No known key found for this signature in database
GPG Key ID: 36E3664E099D0614
1 changed files with 1 additions and 1 deletions

View File

@ -534,7 +534,7 @@ class UsersController extends AUserData {
public function getEditableFields(): DataResponse {
$currentLoggedInUser = $this->userSession->getUser();
if (!$currentLoggedInUser instanceof IUser) {
throw new OCSException('', OCSController::RESPOND_NOT_FOUND);
throw new OCSException('', \OCP\API::RESPOND_NOT_FOUND);
}
return $this->getEditableFieldsForUser($currentLoggedInUser->getUID());