mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 13:12:50 +01:00
fixes for user model (#3483)
This commit is contained in:
parent
8fd2daf038
commit
82ace70a4c
@ -189,7 +189,6 @@ class User extends Authenticatable implements MustVerifyEmail
|
||||
|
||||
return $this->hasOneThrough(CompanyUser::class, CompanyToken::class, 'user_id', 'company_id', 'id', 'company_id')
|
||||
->where('company_user.user_id', $this->id)
|
||||
->where('company_user.company_id', auth()->user()->company()->id)
|
||||
->withTrashed();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user