mirror of
https://github.com/Karaka-Management/oms-CashManagement.git
synced 2026-01-10 14:48:44 +00:00
update
This commit is contained in:
parent
6ce269c837
commit
9c21043ca9
|
|
@ -12,5 +12,32 @@
|
|||
*/
|
||||
declare(strict_types=1);
|
||||
|
||||
use Modules\CashManagement\Controller\BackendController;
|
||||
use Modules\CashManagement\Models\PermissionCategory;
|
||||
use phpOMS\Account\PermissionType;
|
||||
use phpOMS\Router\RouteVerb;
|
||||
|
||||
return [
|
||||
'^.*/accounting/cash/list.*$' => [
|
||||
[
|
||||
'dest' => '\Modules\CashManagement\Controller\BackendController:viewCashList',
|
||||
'verb' => RouteVerb::GET,
|
||||
'permission' => [
|
||||
'module' => BackendController::NAME,
|
||||
'type' => PermissionType::READ,
|
||||
'state' => PermissionCategory::CASH,
|
||||
],
|
||||
],
|
||||
],
|
||||
'^.*/accounting/cash/register.*$' => [
|
||||
[
|
||||
'dest' => '\Modules\CashManagement\Controller\BackendController:viewCashList',
|
||||
'verb' => RouteVerb::GET,
|
||||
'permission' => [
|
||||
'module' => BackendController::NAME,
|
||||
'type' => PermissionType::READ,
|
||||
'state' => PermissionCategory::CASH,
|
||||
],
|
||||
],
|
||||
],
|
||||
];
|
||||
|
|
|
|||
0
Models/CashRegister.php
Normal file
0
Models/CashRegister.php
Normal file
0
Models/CashRegisterMapper.php
Normal file
0
Models/CashRegisterMapper.php
Normal file
0
Models/NullCashRegister.php
Normal file
0
Models/NullCashRegister.php
Normal file
30
Models/PermissionCategory.php
Normal file
30
Models/PermissionCategory.php
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
<?php
|
||||
/**
|
||||
* Jingga
|
||||
*
|
||||
* PHP Version 8.1
|
||||
*
|
||||
* @package Modules\CashManagement\Models
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 2.0
|
||||
* @version 1.0.0
|
||||
* @link https://jingga.app
|
||||
*/
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Modules\CashManagement\Models;
|
||||
|
||||
use phpOMS\Stdlib\Base\Enum;
|
||||
|
||||
/**
|
||||
* Permission category enum.
|
||||
*
|
||||
* @package Modules\CashManagement\Models
|
||||
* @license OMS License 2.0
|
||||
* @link https://jingga.app
|
||||
* @since 1.0.0
|
||||
*/
|
||||
abstract class PermissionCategory extends Enum
|
||||
{
|
||||
public const CASH = 1;
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user