X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/9b83c573163cd7f60b3a82d6b8c0f89c86d1aab7..refs/pull/255/head:/resources/views/pages/show.blade.php diff --git a/resources/views/pages/show.blade.php b/resources/views/pages/show.blade.php index 8a5bffca4..50c6f5d2c 100644 --- a/resources/views/pages/show.blade.php +++ b/resources/views/pages/show.blade.php @@ -2,17 +2,17 @@ @section('content') -
+
@@ -22,18 +22,32 @@
Export
- @if($currentUser->can('page-update')) - Revisions - Edit + @if(userCan('page-update', $page)) + Edit @endif - @if($currentUser->can('page-delete')) - Delete + @if(userCan('page-update', $page) || userCan('restrictions-manage', $page) || userCan('page-delete', $page)) + @endif +
@@ -44,7 +58,7 @@