]> BookStack Code Mirror - bookstack/blobdiff - app/Activity/Controllers/WatchController.php
Copying: Fixed issue with non-page links to page permalinks
[bookstack] / app / Activity / Controllers / WatchController.php
index 5df75da39cd5b997af3cd710cb553f1204f4f86f..b77a893ea58b8c5d81a5a5004ec3e654ab3423f6 100644 (file)
@@ -5,13 +5,14 @@ namespace BookStack\Activity\Controllers;
 use BookStack\Activity\Tools\UserEntityWatchOptions;
 use BookStack\Entities\Tools\MixedEntityRequestHelper;
 use BookStack\Http\Controller;
+use BookStack\Permissions\Permission;
 use Illuminate\Http\Request;
 
 class WatchController extends Controller
 {
     public function update(Request $request, MixedEntityRequestHelper $entityHelper)
     {
-        $this->checkPermission('receive-notifications');
+        $this->checkPermission(Permission::ReceiveNotifications);
         $this->preventGuestAccess();
 
         $requestData = $this->validate($request, array_merge([