fixes for user model (#3483)
This commit is contained in:
parent
8fd2daf038
commit
82ace70a4c
1 changed files with 0 additions and 1 deletions
|
|
@ -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…
Add table
Reference in a new issue