0
0
Fork 0
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 
This commit is contained in:
Dan Brown 2016-04-09 12:40:07 +01:00
parent 1a7de4c2d6
commit 6e03078de3
5 changed files with 73 additions and 5 deletions
app/Http/Controllers

View file

@ -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());