mirror of
https://github.com/Karaka-Management/oms-QualityManagement.git
synced 2026-02-13 03:58:40 +00:00
update
This commit is contained in:
parent
d25a919011
commit
6e531254ce
|
|
@ -12,6 +12,53 @@
|
||||||
"from": "QualityManagement",
|
"from": "QualityManagement",
|
||||||
"permission": { "permission": 2, "type": null, "element": null },
|
"permission": { "permission": 2, "type": null, "element": null },
|
||||||
"parent": 0,
|
"parent": 0,
|
||||||
|
"children": [
|
||||||
|
{
|
||||||
|
"id": 1008502001,
|
||||||
|
"pid": "/",
|
||||||
|
"type": 2,
|
||||||
|
"subtype": 1,
|
||||||
|
"name": "Reports",
|
||||||
|
"uri": "{/base}/qualitymanagement/report/list?{?}",
|
||||||
|
"target": "self",
|
||||||
|
"icon": null,
|
||||||
|
"order": 5,
|
||||||
|
"from": "QualityManagement",
|
||||||
|
"permission": { "permission": 2, "category": null, "element": null },
|
||||||
|
"parent": 1008501001,
|
||||||
|
"children": [
|
||||||
|
{
|
||||||
|
"id": 1008502002,
|
||||||
|
"pid": "/qualitymanagement",
|
||||||
|
"type": 3,
|
||||||
|
"subtype": 1,
|
||||||
|
"name": "List",
|
||||||
|
"uri": "{/base}/qualitymanagement/report/list?{?}",
|
||||||
|
"target": "self",
|
||||||
|
"icon": null,
|
||||||
|
"order": 1,
|
||||||
|
"from": "QualityManagement",
|
||||||
|
"permission": { "permission": 2, "category": null, "element": null },
|
||||||
|
"parent": 1008502001,
|
||||||
|
"children": []
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 1008503001,
|
||||||
|
"pid": "/",
|
||||||
|
"type": 2,
|
||||||
|
"subtype": 1,
|
||||||
|
"name": "QualityReport",
|
||||||
|
"uri": "{/base}/private/qualitymanagement/dashboard?{?}",
|
||||||
|
"target": "self",
|
||||||
|
"icon": null,
|
||||||
|
"order": 1,
|
||||||
|
"from": "QualityManagement",
|
||||||
|
"permission": { "permission": 2, "type": 2, "element": null },
|
||||||
|
"parent": 1003401001,
|
||||||
"children": []
|
"children": []
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,88 @@
|
||||||
<?php declare(strict_types=1);
|
<?php
|
||||||
|
/**
|
||||||
|
* Jingga
|
||||||
|
*
|
||||||
|
* PHP Version 8.1
|
||||||
|
*
|
||||||
|
* @package Modules
|
||||||
|
* @copyright Dennis Eichhorn
|
||||||
|
* @license OMS License 2.0
|
||||||
|
* @version 1.0.0
|
||||||
|
* @link https://jingga.app
|
||||||
|
*/
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
return [];
|
use Modules\QualityManagement\Controller\BackendController;
|
||||||
|
use Modules\QualityManagement\Models\PermissionCategory;
|
||||||
|
use phpOMS\Account\PermissionType;
|
||||||
|
use phpOMS\Router\RouteVerb;
|
||||||
|
|
||||||
|
return [
|
||||||
|
'^.*/qualitymanagement/report/list.*$' => [
|
||||||
|
[
|
||||||
|
'dest' => '\Modules\QualityManagement\Controller\BackendController:viewReportDashboard',
|
||||||
|
'verb' => RouteVerb::GET,
|
||||||
|
'permission' => [
|
||||||
|
'module' => BackendController::NAME,
|
||||||
|
'type' => PermissionType::READ,
|
||||||
|
'state' => PermissionCategory::REPORT_DASHBOARD,
|
||||||
|
],
|
||||||
|
],
|
||||||
|
],
|
||||||
|
'^.*/qualitymanagement/report/view.*$' => [
|
||||||
|
[
|
||||||
|
'dest' => '\Modules\QualityManagement\Controller\BackendController:viewQualityReport',
|
||||||
|
'verb' => RouteVerb::GET,
|
||||||
|
'permission' => [
|
||||||
|
'module' => BackendController::NAME,
|
||||||
|
'type' => PermissionType::READ,
|
||||||
|
'state' => PermissionCategory::QUALITY_REPORT,
|
||||||
|
],
|
||||||
|
],
|
||||||
|
],
|
||||||
|
'^.*/qualitymanagement/audit/list.*$' => [
|
||||||
|
[
|
||||||
|
'dest' => '\Modules\QualityManagement\Controller\BackendController:viewAuditList',
|
||||||
|
'verb' => RouteVerb::GET,
|
||||||
|
'permission' => [
|
||||||
|
'module' => BackendController::NAME,
|
||||||
|
'type' => PermissionType::READ,
|
||||||
|
'state' => PermissionCategory::AUDIT_REPORT,
|
||||||
|
],
|
||||||
|
],
|
||||||
|
],
|
||||||
|
'^.*/qualitymanagement/audit/view.*$' => [
|
||||||
|
[
|
||||||
|
'dest' => '\Modules\QualityManagement\Controller\BackendController:viewQuality',
|
||||||
|
'verb' => RouteVerb::GET,
|
||||||
|
'permission' => [
|
||||||
|
'module' => BackendController::NAME,
|
||||||
|
'type' => PermissionType::READ,
|
||||||
|
'state' => PermissionCategory::QUALITY_REPORT,
|
||||||
|
],
|
||||||
|
],
|
||||||
|
],
|
||||||
|
|
||||||
|
'^.*/private/qualitymanagement/dashboard.*$' => [
|
||||||
|
[
|
||||||
|
'dest' => '\Modules\QualityManagement\Controller\BackendController:viewPrivateReportDashboard',
|
||||||
|
'verb' => RouteVerb::GET,
|
||||||
|
'permission' => [
|
||||||
|
'module' => BackendController::NAME,
|
||||||
|
'type' => PermissionType::READ,
|
||||||
|
'state' => PermissionCategory::PRIVATE_DASHBOARD,
|
||||||
|
],
|
||||||
|
],
|
||||||
|
],
|
||||||
|
'^.*/private/qualitymanagement/report.*$' => [
|
||||||
|
[
|
||||||
|
'dest' => '\Modules\QualityManagement\Controller\BackendController:viewPrivateReport',
|
||||||
|
'verb' => RouteVerb::GET,
|
||||||
|
'permission' => [
|
||||||
|
'module' => BackendController::NAME,
|
||||||
|
'type' => PermissionType::READ,
|
||||||
|
'state' => PermissionCategory::PRIVATE_DASHBOARD,
|
||||||
|
],
|
||||||
|
],
|
||||||
|
],
|
||||||
|
];
|
||||||
|
|
|
||||||
36
Models/PermissionCategory.php
Normal file
36
Models/PermissionCategory.php
Normal file
|
|
@ -0,0 +1,36 @@
|
||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* Jingga
|
||||||
|
*
|
||||||
|
* PHP Version 8.1
|
||||||
|
*
|
||||||
|
* @package Modules\QualityManagement\Models
|
||||||
|
* @copyright Dennis Eichhorn
|
||||||
|
* @license OMS License 2.0
|
||||||
|
* @version 1.0.0
|
||||||
|
* @link https://jingga.app
|
||||||
|
*/
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
namespace Modules\QualityManagement\Models;
|
||||||
|
|
||||||
|
use phpOMS\Stdlib\Base\Enum;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Permission category enum.
|
||||||
|
*
|
||||||
|
* @package Modules\QualityManagement\Models
|
||||||
|
* @license OMS License 2.0
|
||||||
|
* @link https://jingga.app
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
|
abstract class PermissionCategory extends Enum
|
||||||
|
{
|
||||||
|
public const REPORT_DASHBOARD = 1;
|
||||||
|
|
||||||
|
public const PRIVATE_DASHBOARD = 2;
|
||||||
|
|
||||||
|
public const QUALITY_REPORT = 3;
|
||||||
|
|
||||||
|
public const AUDIT_REPORT = 3;
|
||||||
|
}
|
||||||
|
|
@ -13,5 +13,7 @@
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
return ['Navigation' => [
|
return ['Navigation' => [
|
||||||
'QualityManagement' => '',
|
'QualityManagement' => 'Qualitätsmanagement',
|
||||||
|
'Reports' => 'Berichte',
|
||||||
|
'QualityReport' => 'Qualitätsbericht',
|
||||||
]];
|
]];
|
||||||
|
|
|
||||||
|
|
@ -14,4 +14,6 @@ declare(strict_types=1);
|
||||||
|
|
||||||
return ['Navigation' => [
|
return ['Navigation' => [
|
||||||
'QualityManagement' => 'Quality Management',
|
'QualityManagement' => 'Quality Management',
|
||||||
|
'Reports' => 'Reports',
|
||||||
|
'QualityReport' => 'Quality Report',
|
||||||
]];
|
]];
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,6 @@
|
||||||
"name": "Jingga",
|
"name": "Jingga",
|
||||||
"website": "jingga.app"
|
"website": "jingga.app"
|
||||||
},
|
},
|
||||||
"description": "The administration module.",
|
|
||||||
"directory": "QualityManagement",
|
"directory": "QualityManagement",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"Admin": "1.0.0",
|
"Admin": "1.0.0",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user