1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-20 16:31:33 +02:00

fixes for user model (#3483)

This commit is contained in:
David Bomba 2020-03-12 08:01:36 +11:00 committed by GitHub
parent 8fd2daf038
commit 82ace70a4c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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();
}