Skip to content

Commit 3e93341

Browse files
nickvergessenAndyScherzinger
authored andcommitted
fix(logging): Restore the option to log with debug level
Signed-off-by: Joas Schilling <[email protected]>
1 parent e1241f5 commit 3e93341

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

apps/files_external/lib/Migration/DummyUserSession.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
use OCP\IUserSession;
2929

3030
class DummyUserSession implements IUserSession {
31-
3231
private ?IUser $user = null;
3332

3433
public function login($uid, $password) {

lib/private/legacy/OC_User.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@
3939
use OC\User\LoginException;
4040
use OCP\EventDispatcher\IEventDispatcher;
4141
use OCP\ILogger;
42+
use OCP\ISession;
4243
use OCP\IUserManager;
43-
use OCP\IUserSession;
4444
use OCP\Server;
4545
use OCP\User\Events\BeforeUserLoggedInEvent;
4646
use OCP\User\Events\UserLoggedInEvent;
@@ -351,7 +351,7 @@ public static function isAdminUser($uid) {
351351
* @return string|false uid or false
352352
*/
353353
public static function getUser() {
354-
$uid = Server::get(IUserSession::class)->getUser()?->getUID();
354+
$uid = Server::get(ISession::class)?->get('user_id');
355355
if (!is_null($uid) && self::$incognitoMode === false) {
356356
return $uid;
357357
} else {

0 commit comments

Comments
 (0)