mirror of
https://github.com/Karaka-Management/oms-BudgetManagement.git
synced 2026-01-11 15:18:43 +00:00
parent
2a64689da8
commit
73c53a06b3
|
|
@ -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,
|
||||
],
|
||||
],
|
||||
],
|
||||
];
|
||||
|
|
|
|||
30
Models/PermissionState.php
Normal file
30
Models/PermissionState.php
Normal 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;
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user