mirror of
https://github.com/grocy/grocy.git
synced 2025-08-20 04:12:59 +00:00
Show stock journal entries of deleted users / fixed default user handling (fixes #1725)
This commit is contained in:
@@ -32,7 +32,7 @@ class SessionService extends BaseService
|
||||
|
||||
public function GetDefaultUser()
|
||||
{
|
||||
return $this->getDatabase()->users(1);
|
||||
return $this->getDatabase()->users()->orderBy('id')->limit(1)->fetch();
|
||||
}
|
||||
|
||||
public function GetUserBySessionKey($sessionKey)
|
||||
|
Reference in New Issue
Block a user