user())) { return false; } return auth()->check() and ($user->isAdmin() or optional(request()->route()->ticket)->created_by === $user->id ); } }