Replace OCSController with OCP\API
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
This commit is contained in:
parent
25c24c2b6e
commit
5740a6bf2b
|
@ -534,7 +534,7 @@ class UsersController extends AUserData {
|
|||
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());
|
||||
|
|
Loading…
Reference in New Issue