mirror of
https://github.com/Karaka-Management/oms-Profile.git
synced 2026-01-21 11:58:40 +00:00
58 lines
1.7 KiB
PHP
Executable File
58 lines
1.7 KiB
PHP
Executable File
<?php
|
|
/**
|
|
* Karaka
|
|
*
|
|
* PHP Version 8.0
|
|
*
|
|
* @package Modules
|
|
* @copyright Dennis Eichhorn
|
|
* @license OMS License 1.0
|
|
* @version 1.0.0
|
|
* @link https://karaka.app
|
|
*/
|
|
declare(strict_types=1);
|
|
|
|
use Modules\Admin\Controller\ApiController as AdminApiController;
|
|
use Modules\Admin\Models\PermissionCategory as AdminPermissionCategory;
|
|
use Modules\Profile\Controller\ApiController;
|
|
use Modules\Profile\Models\PermissionCategory;
|
|
use phpOMS\Account\PermissionType;
|
|
use phpOMS\Router\RouteVerb;
|
|
|
|
return [
|
|
'^.*/profile.*$' => [
|
|
[
|
|
'dest' => '\Modules\Profile\Controller\ApiController:apiProfileCreate',
|
|
'verb' => RouteVerb::PUT,
|
|
'permission' => [
|
|
'module' => ApiController::NAME,
|
|
'type' => PermissionType::CREATE,
|
|
'state' => PermissionCategory::PROFILE,
|
|
],
|
|
],
|
|
],
|
|
|
|
'^.*/profile/settings/localization(\?.*|$)' => [
|
|
[
|
|
'dest' => '\Modules\Admin\Controller\ApiController:apiSettingsAccountLocalizationSet',
|
|
'verb' => RouteVerb::SET,
|
|
'permission' => [
|
|
'module' => AdminApiController::NAME,
|
|
'type' => PermissionType::MODIFY,
|
|
'state' => AdminPermissionCategory::ACCOUNT_SETTINGS,
|
|
],
|
|
],
|
|
],
|
|
'^.*/profile/settings/image(\?.*|$)' => [
|
|
[
|
|
'dest' => '\Modules\Profile\Controller\ApiController:apiSettingsAccountImageSet',
|
|
'verb' => RouteVerb::SET,
|
|
'permission' => [
|
|
'module' => ApiController::NAME,
|
|
'type' => PermissionType::MODIFY,
|
|
'state' => PermissionCategory::PROFILE,
|
|
],
|
|
],
|
|
],
|
|
];
|