Skip to content

Commit

Permalink
Replace OCSController with OCP\API
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Kesselberg <[email protected]>
  • Loading branch information
kesselb committed Jun 2, 2021
1 parent 25c24c2 commit 5740a6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/provisioning_api/lib/Controller/UsersController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit 5740a6b

Please sign in to comment.