mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-05-21 23:38:39 +00:00
Started work towards adding role view permissions
Work halted as re-write required. In reference to #92
This commit is contained in:
parent
1a7de4c2d6
commit
6e03078de3
5 changed files with 73 additions and 5 deletions
app/Http/Controllers
|
@ -77,6 +77,7 @@ class ChapterController extends Controller
|
|||
{
|
||||
$book = $this->bookRepo->getBySlug($bookSlug);
|
||||
$chapter = $this->chapterRepo->getBySlug($chapterSlug, $book->id);
|
||||
$this->checkOwnablePermission('chapter-view', $chapter);
|
||||
$sidebarTree = $this->bookRepo->getChildren($book);
|
||||
Views::add($chapter);
|
||||
$this->setPageTitle($chapter->getShortName());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue