- $this->showSuccessNotification(trans('entities.pages_copy_success'));
- return redirect($pageCopy->getUrl());
- }
-
- /**
- * Show the Permissions view.
- * @throws NotFoundException
- */
- public function showPermissions(string $bookSlug, string $pageSlug)
- {
- $page = $this->pageRepo->getBySlug($bookSlug, $pageSlug);
- $this->checkOwnablePermission('restrictions-manage', $page);
- return view('pages.permissions', [
- 'page' => $page,
- ]);
- }
-
- /**
- * Set the permissions for this page.
- * @throws NotFoundException
- * @throws Throwable
- */
- public function permissions(Request $request, string $bookSlug, string $pageSlug)
- {
- $page = $this->pageRepo->getBySlug($bookSlug, $pageSlug);
- $this->checkOwnablePermission('restrictions-manage', $page);