]> BookStack Code Mirror - bookstack/blobdiff - resources/views/books/show.blade.php
Updated restricted usage on search and entity meta details
[bookstack] / resources / views / books / show.blade.php
index 76a4a600523355580017126cd6a982ac649a50be..b95b69d1b73748fc61985d3ecefd7dedfc9882b3 100644 (file)
@@ -71,7 +71,7 @@
         <h5>{{ trans('common.details') }}</h5>
         <div class="blended-links">
             @include('entities.meta', ['entity' => $book])
-            @if($book->restricted)
+            @if($book->hasPermissions())
                 <div class="active-restriction">
                     @if(userCan('restrictions-manage', $book))
                         <a href="{{ $book->getUrl('/permissions') }}" class="entity-meta-item">