diff --git a/src/Policies/TicketPolicy.php b/src/Policies/TicketPolicy.php index e3b2bf1..3f369da 100644 --- a/src/Policies/TicketPolicy.php +++ b/src/Policies/TicketPolicy.php @@ -81,8 +81,8 @@ public function publicCreate($user) */ public function view($user, Ticket $ticket) { - if ($ticket->user_id != $user->id) { - return User::findOrFail($user->id)->superAdmin(); + if ($ticket->admin_id == $user->id) { + return true; } return User::findOrFail($user->id)->hasPermission('laralum::tickets.view');