Skip to content

Commit

Permalink
hotfix user assignCompany method
Browse files Browse the repository at this point in the history
  • Loading branch information
roncodes committed Feb 17, 2024
1 parent dd8e5e6 commit be3b547
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Models/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit be3b547

Please sign in to comment.