mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-23 20:00:33 -04:00
Additional task filters
This commit is contained in:
parent
865c9f18c4
commit
e35d12d0b9
@ -156,10 +156,17 @@ class TaskFilters extends QueryFilters
|
|||||||
return $this->builder;
|
return $this->builder;
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this->builder->where(function ($query) use ($user) {
|
return $this->builder->where('user_id', $this->decodePrimaryKey($user));
|
||||||
$query->where('user_id', $this->decodePrimaryKey($user))
|
|
||||||
->orWhere('assigned_user_id', $this->decodePrimaryKey($user));
|
}
|
||||||
});
|
|
||||||
|
public function assigned_user(string $user = ''): Builder
|
||||||
|
{
|
||||||
|
if (strlen($user) == 0) {
|
||||||
|
return $this->builder;
|
||||||
|
}
|
||||||
|
|
||||||
|
return $this->builder->where('assigned_user_id', $this->decodePrimaryKey($user));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user