/**
* This holds the default user when loaded.
- *
- * @var null|User
*/
protected static ?User $defaultUser = null;
return static::$defaultUser;
}
+ public static function clearDefault(): void
+ {
+ static::$defaultUser = null;
+ }
+
/**
* Check if the user is the default public user.
*/