mirror of
https://github.com/Karaka-Management/oms-Surveys.git
synced 2026-01-11 16:08:41 +00:00
77 lines
2.3 KiB
PHP
77 lines
2.3 KiB
PHP
<?php
|
|
/**
|
|
* Orange Management
|
|
*
|
|
* PHP Version 8.0
|
|
*
|
|
* @package Modules
|
|
* @copyright Dennis Eichhorn
|
|
* @license OMS License 1.0
|
|
* @version 1.0.0
|
|
* @link https://orange-management.org
|
|
*/
|
|
declare(strict_types=1);
|
|
|
|
use Modules\Surveys\Controller\BackendController;
|
|
use Modules\Surveys\Models\PermissionState;
|
|
use phpOMS\Account\PermissionType;
|
|
use phpOMS\Router\RouteVerb;
|
|
|
|
return [
|
|
'^.*/survey.*$' => [
|
|
[
|
|
'dest' => '\Modules\Surveys\Controller\BackendController:setUpBackend',
|
|
'verb' => RouteVerb::GET,
|
|
'permission' => [
|
|
'module' => BackendController::NAME,
|
|
'type' => PermissionType::READ,
|
|
'state' => PermissionState::SURVEY_ANSWER,
|
|
],
|
|
],
|
|
],
|
|
'^.*/survey/list.*$' => [
|
|
[
|
|
'dest' => '\Modules\Surveys\Controller\BackendController:viewSurveysList',
|
|
'verb' => RouteVerb::GET,
|
|
'permission' => [
|
|
'module' => BackendController::NAME,
|
|
'type' => PermissionType::READ,
|
|
'state' => PermissionState::SURVEY_TEMPLATE,
|
|
],
|
|
],
|
|
],
|
|
'^.*/survey/create.*$' => [
|
|
[
|
|
'dest' => '\Modules\Surveys\Controller\BackendController:viewSurveysCreate',
|
|
'verb' => RouteVerb::GET,
|
|
'permission' => [
|
|
'module' => BackendController::NAME,
|
|
'type' => PermissionType::CREATE,
|
|
'state' => PermissionState::SURVEY_TEMPLATE,
|
|
],
|
|
],
|
|
],
|
|
'^.*/survey/edit.*$' => [
|
|
[
|
|
'dest' => '\Modules\Surveys\Controller\BackendController:viewSurveysEdit',
|
|
'verb' => RouteVerb::GET,
|
|
'permission' => [
|
|
'module' => BackendController::NAME,
|
|
'type' => PermissionType::READ,
|
|
'state' => PermissionState::SURVEY_TEMPLATE,
|
|
],
|
|
],
|
|
],
|
|
'^.*/survey(\?.*|$)$' => [
|
|
[
|
|
'dest' => '\Modules\Surveys\Controller\BackendController:viewSurveysSurvey',
|
|
'verb' => RouteVerb::GET,
|
|
'permission' => [
|
|
'module' => BackendController::NAME,
|
|
'type' => PermissionType::READ,
|
|
'state' => PermissionState::SURVEY_ANSWER,
|
|
],
|
|
],
|
|
],
|
|
];
|