From 89c9acf9687e51a4e1e6cd57fcdaf0e8dbbd05c0 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Fri, 29 Mar 2024 15:26:00 +0000 Subject: [PATCH] started with template fixes --- Admin/Install/Navigation.install.json | 5 +++-- Admin/Routes/Web/Api.php | 4 ++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/Admin/Install/Navigation.install.json b/Admin/Install/Navigation.install.json index 4af83d7..71b0687 100755 --- a/Admin/Install/Navigation.install.json +++ b/Admin/Install/Navigation.install.json @@ -82,11 +82,12 @@ "uri": "{/base}/news/analysis?{?}", "target": "self", "icon": null, - "order": 15, + "order": 20, "from": "News", "permission": { "permission": 4, "category": null, "element": null }, "parent": 1000601001, - "children": [] + "children": [], + "status": 3 } ] } diff --git a/Admin/Routes/Web/Api.php b/Admin/Routes/Web/Api.php index 107bdd1..ef4af0f 100755 --- a/Admin/Routes/Web/Api.php +++ b/Admin/Routes/Web/Api.php @@ -22,6 +22,7 @@ return [ [ 'dest' => '\Modules\News\Controller\ApiController:apiNewsCreate', 'verb' => RouteVerb::PUT, + 'csrf' => true, 'permission' => [ 'module' => ApiController::NAME, 'type' => PermissionType::CREATE, @@ -31,6 +32,7 @@ return [ [ 'dest' => '\Modules\News\Controller\ApiController:apiNewsUpdate', 'verb' => RouteVerb::SET, + 'csrf' => true, 'permission' => [ 'module' => ApiController::NAME, 'type' => PermissionType::MODIFY, @@ -40,6 +42,7 @@ return [ [ 'dest' => '\Modules\News\Controller\ApiController:apiNewsGet', 'verb' => RouteVerb::GET, + 'csrf' => true, 'permission' => [ 'module' => ApiController::NAME, 'type' => PermissionType::READ, @@ -49,6 +52,7 @@ return [ [ 'dest' => '\Modules\News\Controller\ApiController:apiNewsDelete', 'verb' => RouteVerb::DELETE, + 'csrf' => true, 'permission' => [ 'module' => ApiController::NAME, 'type' => PermissionType::DELETE,