mirror of
https://github.com/Karaka-Management/oms-HumanResourceManagement.git
synced 2026-01-11 20:28:40 +00:00
54 lines
1.8 KiB
PHP
54 lines
1.8 KiB
PHP
<?php
|
|
|
|
use phpOMS\Router\RouteVerb;
|
|
use phpOMS\Account\PermissionType;
|
|
use Modules\HumanResourceManagement\Models\PermissionState;
|
|
use Modules\HumanResourceManagement\Controller\BackendController;
|
|
|
|
return [
|
|
'^.*/backend/hr/staff/list.*$' => [
|
|
[
|
|
'dest' => '\Modules\HumanResourceManagement\Controller\BackendController:viewHrStaffList',
|
|
'verb' => RouteVerb::GET,
|
|
'permission' => [
|
|
'module' => BackendController::MODULE_NAME,
|
|
'type' => PermissionType::READ,
|
|
'state' => PermissionState::HR,
|
|
],
|
|
],
|
|
],
|
|
'^.*/backend/hr/staff/profile.*$' => [
|
|
[
|
|
'dest' => '\Modules\HumanResourceManagement\Controller\BackendController:viewHrStaffProfile',
|
|
'verb' => RouteVerb::GET,
|
|
'permission' => [
|
|
'module' => BackendController::MODULE_NAME,
|
|
'type' => PermissionType::READ,
|
|
'state' => PermissionState::HR,
|
|
],
|
|
],
|
|
],
|
|
'^.*/backend/hr/staff/create.*$' => [
|
|
[
|
|
'dest' => '\Modules\HumanResourceManagement\Controller\BackendController:viewHrStaffCreate',
|
|
'verb' => RouteVerb::GET,
|
|
'permission' => [
|
|
'module' => BackendController::MODULE_NAME,
|
|
'type' => PermissionType::CREATE,
|
|
'state' => PermissionState::HR,
|
|
],
|
|
],
|
|
],
|
|
'^.*/backend/hr/department/list.*$' => [
|
|
[
|
|
'dest' => '\Modules\HumanResourceManagement\Controller\BackendController:viewHrDepartmentList',
|
|
'verb' => RouteVerb::GET,
|
|
'permission' => [
|
|
'module' => BackendController::MODULE_NAME,
|
|
'type' => PermissionType::READ,
|
|
'state' => PermissionState::DEPARTMENT,
|
|
],
|
|
],
|
|
],
|
|
];
|