Merge pull request #27346 from nextcloud/debt/noid/missing-import
[stable21] Replace OCSController with OCP\API
This commit is contained in:
commit
b5d3e389cb
|
@ -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());
|
||||||
|
|
Loading…
Reference in New Issue