Fix for tests
This commit is contained in:
parent
7515ccd321
commit
8e348d83aa
1 changed files with 5 additions and 0 deletions
|
|
@ -395,6 +395,11 @@ class User extends Authenticatable
|
|||
return (($entity && $this->can('edit', $entity))
|
||||
|| (!$entity && $this->can('create', $entityType)));
|
||||
}
|
||||
|
||||
public function primaryAccount()
|
||||
{
|
||||
return $this->account->company->accounts->sortBy('id')->first();
|
||||
}
|
||||
}
|
||||
|
||||
User::updating(function ($user) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue