From be3b5473370ddfad020f324ef91a26fcc71e288d Mon Sep 17 00:00:00 2001 From: "Ronald A. Richardson" Date: Sat, 17 Feb 2024 19:51:19 +0800 Subject: [PATCH] hotfix user `assignCompany` method --- src/Models/User.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Models/User.php b/src/Models/User.php index 398e0a8..6e98889 100644 --- a/src/Models/User.php +++ b/src/Models/User.php @@ -217,7 +217,7 @@ public function assignCompany(Company $company) } // Determine if user should receive invite to join company - if ($user->isNotAdmin()) { + if ($this->isNotAdmin()) { // Invite user to join company $this->sendInviteFromCompany($company);