]> BookStack Code Mirror - bookstack/blobdiff - resources/views/chapters/_breadcrumbs.blade.php
Fixed chapter breadcrumbs and testing issues
[bookstack] / resources / views / chapters / _breadcrumbs.blade.php
index 1e090759ac2df0b632a48ea2c29265e8ab4002c8..418168461aff815aa4b4ca3c9b79194349dda991 100644 (file)
@@ -1,5 +1,5 @@
 <div class="breadcrumbs">
-    @if (userCan('view', $book))
+    @if (userCan('view', $chapter->book))
     <a href="{{ $chapter->book->getUrl() }}" class="text-book text-button"><i class="zmdi zmdi-book"></i>{{ $chapter->book->getShortName() }}</a>
     <span class="sep">&raquo;</span>
     @endif