Skip to content

Commit

Permalink
Merge pull request #27346 from nextcloud/debt/noid/missing-import
Browse files Browse the repository at this point in the history
[stable21] Replace OCSController with OCP\API
  • Loading branch information
skjnldsv authored Jun 2, 2021
2 parents 6a29b60 + 5740a6b commit b5d3e38
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 b5d3e38

Please sign in to comment.