diff options
Diffstat (limited to 'lib/private/legacy/json.php')
-rw-r--r-- | lib/private/legacy/json.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/legacy/json.php b/lib/private/legacy/json.php index 7b3a1b6d9cd..7bfc815ab24 100644 --- a/lib/private/legacy/json.php +++ b/lib/private/legacy/json.php @@ -118,7 +118,7 @@ class OC_JSON{ * @suppress PhanDeprecatedFunction */ public static function checkUserExists($user) { - if (!OCP\User::userExists($user)) { + if (!\OC::$server->getUserManager()->userExists($user)) { $l = \OC::$server->getL10N('lib'); OCP\JSON::error(array('data' => array('message' => $l->t('Unknown user'), 'error' => 'unknown_user' ))); exit; |