]> BookStack Code Mirror - bookstack/blobdiff - app/Activity/Controllers/WatchController.php
fix Sidebar scrolling at mid-range sceen
[bookstack] / app / Activity / Controllers / WatchController.php
index d63918fb35044d01c807d5641126d0e465434d37..c0b1c58724926752c8656fc3685431f0e6361a9f 100644 (file)
@@ -14,10 +14,9 @@ class WatchController extends Controller
         $this->checkPermission('receive-notifications');
         $this->preventGuestAccess();
 
         $this->checkPermission('receive-notifications');
         $this->preventGuestAccess();
 
-        $requestData = $this->validate($request, [
+        $requestData = $this->validate($request, array_merge([
             'level' => ['required', 'string'],
             'level' => ['required', 'string'],
-            ...$entityHelper->validationRules()
-        ]);
+        ], $entityHelper->validationRules()));
 
         $watchable = $entityHelper->getVisibleEntityFromRequestData($requestData);
         $watchOptions = new UserEntityWatchOptions(user(), $watchable);
 
         $watchable = $entityHelper->getVisibleEntityFromRequestData($requestData);
         $watchOptions = new UserEntityWatchOptions(user(), $watchable);