Skip to content

Commit

Permalink
Merge pull request #44400 from nextcloud/bugfix/noid/allow-debug-logl…
Browse files Browse the repository at this point in the history
…evel-again

fix(logging): Restore the option to log with debug level
  • Loading branch information
susnux authored Mar 22, 2024
2 parents d4216bd + 497528e commit c35e237
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/private/legacy/OC_User.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -339,7 +339,7 @@ public static function isAdminUser($uid) {
* @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 {
Expand Down

0 comments on commit c35e237

Please sign in to comment.