Skip to content

Commit a573c7d

Browse files
committed
Deleted unused Ticket model AgentUserTickets() scope
1 parent d8656e7 commit a573c7d

1 file changed

Lines changed: 0 additions & 15 deletions

File tree

src/Models/Ticket.php

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -573,21 +573,6 @@ public function scopeFromAgent($query, $id)
573573
return $query->where('agent_id', $id);
574574
}
575575

576-
/**
577-
* Get all agent tickets.
578-
*
579-
* @param $query
580-
* @param $id
581-
*
582-
* @return mixed
583-
*/
584-
public function scopeAgentUserTickets($query, $id)
585-
{
586-
return $query->where(function ($subquery) use ($id) {
587-
$subquery->where('agent_id', $id)->orWhere('user_id', $id)->notHidden();
588-
});
589-
}
590-
591576
/**
592577
* Get all visible tickets for current user.
593578
* Includes: general user permissions and applied filters.

0 commit comments

Comments
 (0)