]> BookStack Code Mirror - bookstack/blobdiff - resources/views/base.blade.php
Updated so permission effect admins more
[bookstack] / resources / views / base.blade.php
index 93ee6cdc6c85cb1f75dd108eccd702b7e9e07f9e..016f8e833e08cbbc9e9843e6a8684269c9bb5267 100644 (file)
@@ -52,7 +52,9 @@
                             </form>
                         </div>
                         <div class="links text-center">
-                            <a href="{{ baseUrl('/shelves') }}">@icon('bookshelf'){{ trans('entities.shelves') }}</a>
+                            @if(userCan('bookshelf-view-all') || userCan('bookshelf-view-own'))
+                                <a href="{{ baseUrl('/shelves') }}">@icon('bookshelf'){{ trans('entities.shelves') }}</a>
+                            @endif
                             <a href="{{ baseUrl('/books') }}">@icon('book'){{ trans('entities.books') }}</a>
                             @if(signedInUser() && userCan('settings-manage'))
                                 <a href="{{ baseUrl('/settings') }}">@icon('settings'){{ trans('settings.settings') }}</a>