oms-Production/Admin/Routes/Web/Backend.php
Dennis Eichhorn 16c9197205
Some checks failed
Image optimization / general_image_workflow (push) Has been cancelled
CI / general_module_workflow_php (push) Has been cancelled
CI / general_module_workflow_js (push) Has been cancelled
fix permissions
2025-04-02 14:15:06 +00:00

118 lines
4.3 KiB
PHP

<?php declare(strict_types=1);
use Modules\Production\Controller\BackendController;
use Modules\Production\Models\PermissionState;
use phpOMS\Account\PermissionType;
use phpOMS\Router\RouteVerb;
return [
'^/production/list(\?.*$|$)' => [
[
'dest' => '\Modules\Production\Controller\BackendController:viewProductionList',
'verb' => RouteVerb::GET,
'active' => true,
'permission' => [
'module' => BackendController::MODULE_NAME,
'type' => PermissionType::READ,
'state' => PermissionState::PRODUCTION,
],
],
],
'^/production/create(\?.*$|$)' => [
[
'dest' => '\Modules\Production\Controller\BackendController:viewProductionCreate',
'verb' => RouteVerb::GET,
'active' => true,
'permission' => [
'module' => BackendController::MODULE_NAME,
'type' => PermissionType::CREATE,
'state' => PermissionState::PRODUCTION,
],
],
],
'^/production/view(\?.*$|$)' => [
[
'dest' => '\Modules\Production\Controller\BackendController:viewProductionView',
'verb' => RouteVerb::GET,
'active' => true,
'permission' => [
'module' => BackendController::MODULE_NAME,
'type' => PermissionType::READ,
'state' => PermissionState::PRODUCTION,
],
],
],
'^/production/machine/list(\?.*$|$)' => [
[
'dest' => '\Modules\Production\Controller\BackendController:viewProductionMachineList',
'verb' => RouteVerb::GET,
'active' => true,
'permission' => [
'module' => BackendController::MODULE_NAME,
'type' => PermissionType::READ,
'state' => PermissionState::MACHINE,
],
],
],
'^/production/machine/create(\?.*$|$)' => [
[
'dest' => '\Modules\Production\Controller\BackendController:viewProductionMachineCreate',
'verb' => RouteVerb::GET,
'active' => true,
'permission' => [
'module' => BackendController::MODULE_NAME,
'type' => PermissionType::CREATE,
'state' => PermissionState::MACHINE,
],
],
],
'^/production/machine/view(\?.*$|$)' => [
[
'dest' => '\Modules\Production\Controller\BackendController:viewProductionMachineView',
'verb' => RouteVerb::GET,
'active' => true,
'permission' => [
'module' => BackendController::MODULE_NAME,
'type' => PermissionType::READ,
'state' => PermissionState::MACHINE,
],
],
],
'^/production/recipe/list(\?.*$|$)' => [
[
'dest' => '\Modules\Production\Controller\BackendController:viewProductionRecipeList',
'verb' => RouteVerb::GET,
'active' => true,
'permission' => [
'module' => BackendController::MODULE_NAME,
'type' => PermissionType::READ,
'state' => PermissionState::RECIPE,
],
],
],
'^/production/recipe/create(\?.*$|$)' => [
[
'dest' => '\Modules\Production\Controller\BackendController:viewProductionRecipeCreate',
'verb' => RouteVerb::GET,
'active' => true,
'permission' => [
'module' => BackendController::MODULE_NAME,
'type' => PermissionType::CREATE,
'state' => PermissionState::RECIPE,
],
],
],
'^/production/recipe/view(\?.*$|$)' => [
[
'dest' => '\Modules\Production\Controller\BackendController:viewProductionRecipeView',
'verb' => RouteVerb::GET,
'active' => true,
'permission' => [
'module' => BackendController::MODULE_NAME,
'type' => PermissionType::READ,
'state' => PermissionState::RECIPE,
],
],
],
];