diff --git a/src/Modules/Cli/Tasks/Traits/UserTrait.php b/src/Modules/Cli/Tasks/Traits/UserTrait.php index c115ba8c..1e71ebe3 100644 --- a/src/Modules/Cli/Tasks/Traits/UserTrait.php +++ b/src/Modules/Cli/Tasks/Traits/UserTrait.php @@ -12,7 +12,6 @@ namespace Zemit\Modules\Cli\Tasks\Traits; use Phalcon\Db\Column; -use Phalcon\Mvc\Model\Resultset; use Zemit\Models\Role; use Zemit\Models\User; use Zemit\Models\UserRole; @@ -188,6 +187,6 @@ public function addModelsPermissions(?array $tables = null): void ], ]); - $this->acl->setOption('permissions', $this->config->pathToArray('permissions') ?? []); + $this->acl?->setOption('permissions', $this->config->pathToArray('permissions') ?? []); } }