BookStack\Http\Controllers\ChapterController::showRestrict PHP Method

showRestrict() public method

Show the Restrictions view.
public showRestrict ( $bookSlug, $chapterSlug ) : Illuminate\Contracts\View\Factory | Illuminate\View\View
$bookSlug
$chapterSlug
return Illuminate\Contracts\View\Factory | Illuminate\View\View
    public function showRestrict($bookSlug, $chapterSlug)
    {
        $book = $this->bookRepo->getBySlug($bookSlug);
        $chapter = $this->chapterRepo->getBySlug($chapterSlug, $book->id);
        $this->checkOwnablePermission('restrictions-manage', $chapter);
        $roles = $this->userRepo->getRestrictableRoles();
        return view('chapters/restrictions', ['chapter' => $chapter, 'roles' => $roles]);
    }