Merge pull request #27346 from nextcloud/debt/noid/missing-import

[stable21] Replace OCSController with OCP\API
This commit is contained in:
John Molakvoæ 2021-06-02 21:18:50 +02:00 committed by GitHub
commit b5d3e389cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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