Skip to content

Commit

Permalink
Do not use api if verified
Browse files Browse the repository at this point in the history
  • Loading branch information
SergioMendolia committed Sep 6, 2023
1 parent 311ee9d commit 6378989
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Controller/BookController.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@ public function index(Book $book, string $slug, BookSuggestions $bookSuggestions
], 301);
}

$suggestions = $bookSuggestions->getSuggestions($book);
$suggestions = [];
if (!$book->isVerified()) {
$suggestions = $bookSuggestions->getSuggestions($book);
}

return $this->render('book/index.html.twig', [
'book' => $book,
Expand Down

0 comments on commit 6378989

Please sign in to comment.