diff options
author | Joas Schilling <coding@schilljs.com> | 2024-03-22 01:04:48 +0100 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2024-03-22 01:05:26 +0100 |
commit | 497528e45ea6b50ae3eddc0c228e5121786d3017 (patch) | |
tree | dcd6b45546757d8d69de71aa8bd3f90368e83e34 /lib/private/legacy/OC_User.php | |
parent | 5ca6249f42d3e7cfde1857d2973283d4eec824e8 (diff) | |
download | nextcloud-server-497528e45ea6b50ae3eddc0c228e5121786d3017.tar.gz nextcloud-server-497528e45ea6b50ae3eddc0c228e5121786d3017.zip |
fix(logging): Restore the option to log with debug level
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/private/legacy/OC_User.php')
-rw-r--r-- | lib/private/legacy/OC_User.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/legacy/OC_User.php b/lib/private/legacy/OC_User.php index c3bf2b995c4..07ec97da7b0 100644 --- a/lib/private/legacy/OC_User.php +++ b/lib/private/legacy/OC_User.php @@ -39,9 +39,9 @@ use OC\User\LoginException; use OCP\EventDispatcher\IEventDispatcher; use OCP\IGroupManager; +use OCP\ISession; use OCP\IUser; use OCP\IUserManager; -use OCP\IUserSession; use OCP\Server; use OCP\User\Events\BeforeUserLoggedInEvent; use OCP\User\Events\UserLoggedInEvent; @@ -339,7 +339,7 @@ class OC_User { * @return string|false uid or false */ public static function getUser() { - $uid = Server::get(IUserSession::class)->getUser()?->getUID(); + $uid = Server::get(ISession::class)?->get('user_id'); if (!is_null($uid) && self::$incognitoMode === false) { return $uid; } else { |