oms-HumanResourceTimeRecording/Admin/Routes/Web/Timerecording.php
Dennis Eichhorn 75c26d6e62
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:05 +00:00

33 lines
1.1 KiB
PHP

<?php
declare(strict_types=1);
use Modules\HumanResourceTimeRecording\Controller\TimerecordingController;
use Modules\HumanResourceTimeRecording\Models\PermissionCategory;
use phpOMS\Account\PermissionType;
use phpOMS\Router\RouteVerb;
return [
'^/timerecording$' => [
[
'dest' => '\Modules\HumanResourceTimeRecording\Controller\TimerecordingController:viewDashboard',
'verb' => RouteVerb::GET,
'permission' => [
'module' => TimerecordingController::NAME,
'type' => PermissionType::READ,
'state' => PermissionCategory::DASHBOARD,
],
],
],
'^.*/timerecording/dashboard(\?.*$|$)' => [
[
'dest' => '\Modules\HumanResourceTimeRecording\Controller\TimerecordingController:viewDashboard',
'verb' => RouteVerb::GET,
'permission' => [
'module' => TimerecordingController::NAME,
'type' => PermissionType::READ,
'state' => PermissionCategory::DASHBOARD,
],
],
],
];