]> BookStack Code Mirror - bookstack/blobdiff - resources/views/chapters/move.blade.php
Added destination permission checking to entity move
[bookstack] / resources / views / chapters / move.blade.php
index 143d048b96da1644ac736620aefa445db79666f6..0efc18adf3c02cb28a9be16c6ff2b64d41189466 100644 (file)
@@ -17,7 +17,7 @@
                     {!! csrf_field() !!}
                     <input type="hidden" name="_method" value="PUT">
 
-                    @include('components.entity-selector', ['name' => 'entity_selection', 'selectorSize' => 'large', 'entityTypes' => 'book'])
+                    @include('components.entity-selector', ['name' => 'entity_selection', 'selectorSize' => 'large', 'entityTypes' => 'book', 'entityPermission' => 'chapter-create'])
 
                     <div class="form-group text-right">
                         <a href="{{ $chapter->getUrl() }}" class="button outline">{{ trans('common.cancel') }}</a>