]> BookStack Code Mirror - bookstack/blobdiff - app/Http/Controllers/PageController.php
Started work on details/summary blocks
[bookstack] / app / Http / Controllers / PageController.php
index 3e57657da7199e6b5da0046b1c6f6008c50c932b..fc4b463e15f421fcd386ba054a6ae7919d09cd92 100644 (file)
@@ -412,11 +412,9 @@ class PageController extends Controller
 
         try {
             $parent = $this->pageRepo->move($page, $entitySelection);
+        } catch (PermissionsException $exception) {
+            $this->showPermissionError();
         } catch (Exception $exception) {
-            if ($exception instanceof PermissionsException) {
-                $this->showPermissionError();
-            }
-
             $this->showErrorNotification(trans('errors.selected_book_chapter_not_found'));
 
             return redirect()->back();