mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-23 20:00:33 -04:00
Fix for tests
This commit is contained in:
parent
7515ccd321
commit
8e348d83aa
@ -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…
x
Reference in New Issue
Block a user