From 2caa9c0855593beccb5f57b25ef32cc88f02f359 Mon Sep 17 00:00:00 2001 From: Julien Turbide Date: Sat, 2 Nov 2024 14:49:34 -0400 Subject: [PATCH] fix psalm acl access --- src/Modules/Cli/Tasks/Traits/UserTrait.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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') ?? []); } }