From 6e6399b1535b2cfe3e05132deb8483b911549696 Mon Sep 17 00:00:00 2001 From: Matt Gatner Date: Mon, 22 Apr 2019 14:09:21 +0000 Subject: [PATCH] Pass userModel to service, fix model namespace --- src/Config/Services.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Config/Services.php b/src/Config/Services.php index e35a154c..fd927d09 100644 --- a/src/Config/Services.php +++ b/src/Config/Services.php @@ -4,8 +4,8 @@ use Myth\Auth\Authorization\FlatAuthorization; use Myth\Auth\Models\UserModel; use Myth\Auth\Models\LoginModel; -use Myth\Authorization\GroupModel; -use Myth\Authorization\PermissionModel; +use Myth\Auth\Authorization\GroupModel; +use Myth\Auth\Authorization\PermissionModel; use Myth\Auth\Authentication\Passwords\PasswordValidator; use CodeIgniter\Config\BaseService; @@ -43,7 +43,7 @@ public static function authorization(Model $groupModel=null, Model $permissionMo { if ($getShared) { - return self::getSharedInstance('authorization', $groupModel, $permissionModel); + return self::getSharedInstance('authorization', $groupModel, $permissionModel, $userModel); } if (is_null($groupModel))