mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 13:12:50 +01:00
Slight modification for query of company owner
This commit is contained in:
parent
406b21625c
commit
85b58ec8df
@ -476,7 +476,8 @@ class Company extends BaseModel
|
||||
|
||||
public function owner()
|
||||
{
|
||||
return $this->company_users->where('is_owner', true)->first()->user;
|
||||
return $this->company_users()->withTrashed()->where('is_owner', true)->first()->user;
|
||||
//return $this->company_users->where('is_owner', true)->first()->user;
|
||||
}
|
||||
|
||||
public function resolveRouteBinding($value, $field = null)
|
||||
|
Loading…
Reference in New Issue
Block a user