diff options
author | Joas Schilling <coding@schilljs.com> | 2024-03-22 01:04:48 +0100 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2024-07-22 14:45:44 +0200 |
commit | be5d40e3e277aac5fc6939922c8b18094c20c9b8 (patch) | |
tree | 802b1d2b63d24459eca2f2b1dca59bbad4aef30a /lib/private/legacy | |
parent | 1c75c5f1e098600c414915f22304436f25c974f7 (diff) | |
download | nextcloud-server-be5d40e3e277aac5fc6939922c8b18094c20c9b8.tar.gz nextcloud-server-be5d40e3e277aac5fc6939922c8b18094c20c9b8.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')
-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 51bf0fd6049..1174c492fef 100644 --- a/lib/private/legacy/OC_User.php +++ b/lib/private/legacy/OC_User.php @@ -39,9 +39,9 @@ use OC\Authentication\Token\IProvider; 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; @@ -350,7 +350,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 { |