fix Передача обьекта пользователя в модель

This commit is contained in:
origami11@yandex.ru 2022-12-09 17:39:23 +03:00
parent 9f3523de6b
commit 73112f5bf0
3 changed files with 7 additions and 4 deletions

View file

@ -153,7 +153,7 @@ class Action
public function getModel($name)
{
if (!$this->factory) {
$this->factory = new Factory($this->db, $this->config);
$this->factory = new Factory($this->db, $this->config, $this->user);
}
return $this->factory->getModel($name);
}