diff options
author | Sebastian Wessalowski <sebastian@wessalowski.org> | 2017-03-02 16:52:05 +0100 |
---|---|---|
committer | Sebastian Wessalowski <sebastian@wessalowski.org> | 2017-03-02 22:59:39 +0100 |
commit | e399097e3a1abf720d50aaab240f0379aaf76997 (patch) | |
tree | 9ddd96d6b06cf404b2a08bb7e993c5fbdcc86fc2 /lib/private/legacy/json.php | |
parent | 0ef15f93c4792306cfb5eee635d8edce7d944691 (diff) | |
download | nextcloud-server-e399097e3a1abf720d50aaab240f0379aaf76997.tar.gz nextcloud-server-e399097e3a1abf720d50aaab240f0379aaf76997.zip |
Remove deprecated OC_User::isLoggedIn
Signed-off-by: Sebastian Wessalowski <sebastian@wessalowski.org>
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 f386d03ab1b..0e598a68ee1 100644 --- a/lib/private/legacy/json.php +++ b/lib/private/legacy/json.php @@ -67,7 +67,7 @@ class OC_JSON{ */ public static function checkLoggedIn() { $twoFactorAuthManger = \OC::$server->getTwoFactorAuthManager(); - if( !OC_User::isLoggedIn() + if( !\OC::$server->getUserSession()->isLoggedIn() || $twoFactorAuthManger->needsSecondFactor(\OC::$server->getUserSession()->getUser())) { $l = \OC::$server->getL10N('lib'); http_response_code(\OCP\AppFramework\Http::STATUS_UNAUTHORIZED); |