Merge branch 'develop' into trunk

This commit is contained in:
Jérémy Munsch 2021-05-04 12:37:45 +02:00
commit 7695d5e8f1

View file

@ -33,6 +33,9 @@ class TicketController extends Controller
public function index(SortTickets $request)
{
$tickets = Ticket::query();
if (auth()->user()->project_id) {
$tickets = $tickets->where('project_id', auth()->user()->project_id);
}
if ($request->status) {
$tickets = $tickets->where('status', TicketStatus::archived());