User optimisation and code cleanup
This commit is contained in:
@@ -16,6 +16,6 @@ trait ScopeServiceUserAuthorised
|
||||
public function scopeServiceUserAuthorised($query,User $uo)
|
||||
{
|
||||
return $query
|
||||
->whereIN('services.account_id',$uo->accounts->pluck('id'));
|
||||
->whereIN('services.account_id',$uo->accounts_all->pluck('id'));
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user