mirror of
https://github.com/Karaka-Management/oms-Organization.git
synced 2026-01-18 03:08:41 +00:00
109 lines
3.8 KiB
PHP
109 lines
3.8 KiB
PHP
<?php declare(strict_types=1);
|
|
|
|
use Modules\Organization\Controller\BackendController;
|
|
use Modules\Organization\Models\PermissionState;
|
|
use phpOMS\Account\PermissionType;
|
|
use phpOMS\Router\RouteVerb;
|
|
|
|
return [
|
|
'^.*/organization/unit/list.*$' => [
|
|
[
|
|
'dest' => '\Modules\Organization\Controller\BackendController:viewUnitList',
|
|
'verb' => RouteVerb::GET,
|
|
'permission' => [
|
|
'module' => BackendController::MODULE_NAME,
|
|
'type' => PermissionType::READ,
|
|
'state' => PermissionState::UNIT,
|
|
],
|
|
],
|
|
],
|
|
'^.*/organization/unit/profile.*$' => [
|
|
[
|
|
'dest' => '\Modules\Organization\Controller\BackendController:viewUnitProfile',
|
|
'verb' => RouteVerb::GET,
|
|
'permission' => [
|
|
'module' => BackendController::MODULE_NAME,
|
|
'type' => PermissionType::READ,
|
|
'state' => PermissionState::UNIT,
|
|
],
|
|
],
|
|
],
|
|
'^.*/organization/unit/create.*$' => [
|
|
[
|
|
'dest' => '\Modules\Organization\Controller\BackendController:viewUnitCreate',
|
|
'verb' => RouteVerb::GET,
|
|
'permission' => [
|
|
'module' => BackendController::MODULE_NAME,
|
|
'type' => PermissionType::CREATE,
|
|
'state' => PermissionState::UNIT,
|
|
],
|
|
],
|
|
],
|
|
'^.*/organization/department/list.*$' => [
|
|
[
|
|
'dest' => '\Modules\Organization\Controller\BackendController:viewDepartmentList',
|
|
'verb' => RouteVerb::GET,
|
|
'permission' => [
|
|
'module' => BackendController::MODULE_NAME,
|
|
'type' => PermissionType::READ,
|
|
'state' => PermissionState::DEPARTMENT,
|
|
],
|
|
],
|
|
],
|
|
'^.*/organization/department/profile.*$' => [
|
|
[
|
|
'dest' => '\Modules\Organization\Controller\BackendController:viewDepartmentProfile',
|
|
'verb' => RouteVerb::GET,
|
|
'permission' => [
|
|
'module' => BackendController::MODULE_NAME,
|
|
'type' => PermissionType::READ,
|
|
'state' => PermissionState::DEPARTMENT,
|
|
],
|
|
],
|
|
],
|
|
'^.*/organization/department/create.*$' => [
|
|
[
|
|
'dest' => '\Modules\Organization\Controller\BackendController:viewDepartmentCreate',
|
|
'verb' => RouteVerb::GET,
|
|
'permission' => [
|
|
'module' => BackendController::MODULE_NAME,
|
|
'type' => PermissionType::CREATE,
|
|
'state' => PermissionState::DEPARTMENT,
|
|
],
|
|
],
|
|
],
|
|
'^.*/organization/position/list.*$' => [
|
|
[
|
|
'dest' => '\Modules\Organization\Controller\BackendController:viewPositionList',
|
|
'verb' => RouteVerb::GET,
|
|
'permission' => [
|
|
'module' => BackendController::MODULE_NAME,
|
|
'type' => PermissionType::READ,
|
|
'state' => PermissionState::POSITION,
|
|
],
|
|
],
|
|
],
|
|
'^.*/organization/position/profile.*$' => [
|
|
[
|
|
'dest' => '\Modules\Organization\Controller\BackendController:viewPositionProfile',
|
|
'verb' => RouteVerb::GET,
|
|
'permission' => [
|
|
'module' => BackendController::MODULE_NAME,
|
|
'type' => PermissionType::READ,
|
|
'state' => PermissionState::POSITION,
|
|
],
|
|
],
|
|
],
|
|
'^.*/organization/position/create.*$' => [
|
|
[
|
|
'dest' => '\Modules\Organization\Controller\BackendController:viewPositionCreate',
|
|
'verb' => RouteVerb::GET,
|
|
'permission' => [
|
|
'module' => BackendController::MODULE_NAME,
|
|
'type' => PermissionType::CREATE,
|
|
'state' => PermissionState::POSITION,
|
|
],
|
|
],
|
|
],
|
|
];
|