This commit is contained in:
Dennis Eichhorn 2018-08-17 20:02:29 +02:00
parent 2a64689da8
commit 73c53a06b3
2 changed files with 38 additions and 0 deletions

View File

@ -1,12 +1,20 @@
<?php
use phpOMS\Router\RouteVerb;
use phpOMS\Account\PermissionType;
use Modules\BudgetManagement\Models\PermissionState;
use Modules\BudgetManagement\Controller;
return [
'^.*/backend/controlling/budget/dashboard.*$' => [
[
'dest' => '\Modules\BudgetManagement\Controller:viewBudgetingDashboard',
'verb' => RouteVerb::GET,
'permission' => [
'module' => Controller::MODULE_NAME,
'type' => PermissionType::READ,
'state' => PermissionState::BUDGET,
],
],
],
];

View File

@ -0,0 +1,30 @@
<?php
/**
* Orange Management
*
* PHP Version 7.2
*
* @package Modules\BudgetManagement
* @copyright Dennis Eichhorn
* @license OMS License 1.0
* @version 1.0.0
* @link http://website.orange-management.de
*/
declare(strict_types=1);
namespace Modules\BudgetManagement\Models;
use phpOMS\Stdlib\Base\Enum;
/**
* Permision state enum.
*
* @package Modules\BudgetManagement
* @license OMS License 1.0
* @link http://website.orange-management.de
* @since 1.0.0
*/
abstract class PermissionState extends Enum
{
public const BUDGET = 1;
}