diff --git a/Admin/Routes/Web/Api.php b/Admin/Routes/Web/Api.php index df5bef2..8023ed8 100755 --- a/Admin/Routes/Web/Api.php +++ b/Admin/Routes/Web/Api.php @@ -40,7 +40,7 @@ return [ 'active' => true, 'permission' => [ 'module' => Controller::NAME, - 'type' => PermissionType::READ, + 'type' => PermissionType::CREATE, 'state' => PermissionCategory::EQUIPMENT, ], ], @@ -51,7 +51,7 @@ return [ 'active' => true, 'permission' => [ 'module' => Controller::NAME, - 'type' => PermissionType::READ, + 'type' => PermissionType::MODIFY, 'state' => PermissionCategory::EQUIPMENT, ], ], @@ -65,8 +65,8 @@ return [ 'active' => true, 'permission' => [ 'module' => Controller::NAME, - 'type' => PermissionType::READ, - 'state' => PermissionCategory::EQUIPMENT, + 'type' => PermissionType::CREATE, + 'state' => PermissionCategory::EQUIPMENT_NOTE, ], ], [ @@ -76,8 +76,8 @@ return [ 'active' => true, 'permission' => [ 'module' => Controller::NAME, - 'type' => PermissionType::READ, - 'state' => PermissionCategory::EQUIPMENT, + 'type' => PermissionType::MODIFY, + 'state' => PermissionCategory::EQUIPMENT_NOTE, ], ], ], diff --git a/Theme/Backend/equipment-view.tpl.php b/Theme/Backend/equipment-view.tpl.php index 23e6645..0f6e328 100755 --- a/Theme/Backend/equipment-view.tpl.php +++ b/Theme/Backend/equipment-view.tpl.php @@ -54,6 +54,10 @@ echo $this->data['nav']->render();
+
>
getHtml('Equipment'); ?>
@@ -121,6 +125,7 @@ echo $this->data['nav']->render();
+