]> BookStack Code Mirror - bookstack/blobdiff - app/Activity/Controllers/WebhookController.php
Copying: Fixed issue with non-page links to page permalinks
[bookstack] / app / Activity / Controllers / WebhookController.php
index 90e70bafc3fd678d4409201d533ea943f92bbeae..6a65b8363612bc16be806215f33a466d8f3c7b18 100644 (file)
@@ -5,7 +5,8 @@ namespace BookStack\Activity\Controllers;
 use BookStack\Activity\ActivityType;
 use BookStack\Activity\Models\Webhook;
 use BookStack\Activity\Queries\WebhooksAllPaginatedAndSorted;
-use BookStack\Http\Controllers\Controller;
+use BookStack\Http\Controller;
+use BookStack\Permissions\Permission;
 use BookStack\Util\SimpleListOptions;
 use Illuminate\Http\Request;
 
@@ -14,7 +15,7 @@ class WebhookController extends Controller
     public function __construct()
     {
         $this->middleware([
-            'can:settings-manage',
+            Permission::SettingsManage->middleware()
         ]);
     }