Skip to content

Commit 5294508

Browse files
committed
Bug in ticket card: Exception when the owner (user_id) was deleted in database
1 parent 0981061 commit 5294508

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Models/Member.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ public static function isAssignedAgent($id)
144144
public static function isTicketOwner($id)
145145
{
146146
if (auth()->check()) {
147-
if (auth()->user()->id == Ticket::find($id)->user->id) {
147+
if (auth()->user()->id == Ticket::find($id)->user_id) {
148148
return true;
149149
}
150150
}

0 commit comments

Comments
 (0)