From 5740a6bf2bc94c69deb2b4d41a0de66403510e26 Mon Sep 17 00:00:00 2001 From: Daniel Kesselberg Date: Wed, 2 Jun 2021 15:07:46 +0200 Subject: [PATCH] Replace OCSController with OCP\API Signed-off-by: Daniel Kesselberg --- apps/provisioning_api/lib/Controller/UsersController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/provisioning_api/lib/Controller/UsersController.php b/apps/provisioning_api/lib/Controller/UsersController.php index 155c95d60206b..d21da13a15288 100644 --- a/apps/provisioning_api/lib/Controller/UsersController.php +++ b/apps/provisioning_api/lib/Controller/UsersController.php @@ -534,7 +534,7 @@ public function getCurrentUser(): DataResponse { 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());