@include('pages.parts.page-display')
+ @include('pages.parts.pointer', ['page' => $page])
@include('entities.sibling-navigation', ['next' => $next, 'previous' => $previous])
@@ -79,7 +83,7 @@
@include('entities.meta', ['entity' => $page])
- @if($book->restricted)
+ @if($book->hasPermissions())
@if(userCan('restrictions-manage', $book))
@@ -95,7 +99,7 @@
@endif
- @if($page->chapter && $page->chapter->restricted)
+ @if($page->chapter && $page->chapter->hasPermissions())
@if(userCan('restrictions-manage', $page->chapter))
@@ -111,7 +115,7 @@
@endif
- @if($page->restricted)
+ @if($page->hasPermissions())
@if(userCan('restrictions-manage', $page))
@@ -143,37 +147,37 @@
{{--User Actions--}}
@if(userCan('page-update', $page))
-
+
@icon('edit')
{{ trans('common.edit') }}
@endif
- @if(userCanOnAny('page-create'))
-
+ @if(userCanOnAny('create', \BookStack\Entities\Models\Book::class) || userCanOnAny('create', \BookStack\Entities\Models\Chapter::class) || userCan('page-create-all') || userCan('page-create-own'))
+
@icon('copy')
{{ trans('common.copy') }}
@endif
@if(userCan('page-update', $page))
@if(userCan('page-delete', $page))
-
+
@icon('folder')
{{ trans('common.move') }}
@endif
-
- @icon('history')
- {{ trans('entities.revisions') }}
-
@endif
+
+ @icon('history')
+ {{ trans('entities.revisions') }}
+
@if(userCan('restrictions-manage', $page))
-
+
@icon('lock')
{{ trans('entities.permissions') }}
@endif
@if(userCan('page-delete', $page))
-
+
@icon('delete')
{{ trans('common.delete') }}