mirror of
https://github.com/nextcloud/server.git
synced 2026-05-19 08:25:56 -04:00
Merge pull request #44400 from nextcloud/bugfix/noid/allow-debug-loglevel-again
fix(logging): Restore the option to log with debug level
This commit is contained in:
commit
c35e237307
1 changed files with 2 additions and 2 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue