mirror of
https://github.com/Karaka-Management/oms-Support.git
synced 2026-01-11 17:18:40 +00:00
update settings
This commit is contained in:
parent
ea2cbe4c60
commit
c01032c570
|
|
@ -18,17 +18,6 @@ use phpOMS\Account\PermissionType;
|
||||||
use phpOMS\Router\RouteVerb;
|
use phpOMS\Router\RouteVerb;
|
||||||
|
|
||||||
return [
|
return [
|
||||||
'^.*/admin/module/settings\?id=Support.*$' => [
|
|
||||||
[
|
|
||||||
'dest' => '\Modules\Support\Controller\BackendController:viewModuleSettings',
|
|
||||||
'verb' => RouteVerb::GET,
|
|
||||||
'permission' => [
|
|
||||||
'module' => BackendController::NAME,
|
|
||||||
'type' => PermissionType::READ,
|
|
||||||
'state' => \Modules\Admin\Models\PermissionCategory::MODULE,
|
|
||||||
],
|
|
||||||
],
|
|
||||||
],
|
|
||||||
'^.*/support/list.*$' => [
|
'^.*/support/list.*$' => [
|
||||||
[
|
[
|
||||||
'dest' => '\Modules\Support\Controller\BackendController:viewSupportList',
|
'dest' => '\Modules\Support\Controller\BackendController:viewSupportList',
|
||||||
|
|
|
||||||
|
|
@ -257,11 +257,7 @@ final class BackendController extends Controller
|
||||||
$applications = SupportAppMapper::getAll()->execute();
|
$applications = SupportAppMapper::getAll()->execute();
|
||||||
$view->setData('applications', $applications);
|
$view->setData('applications', $applications);
|
||||||
|
|
||||||
if (\is_file(__DIR__ . '/../Admin/Settings/Theme/Backend/settings.tpl.php')) {
|
$view->setTemplate('/Modules/' . static::NAME . '/Admin/Settings/Theme/Backend/settings');
|
||||||
$view->setTemplate('/Modules/' . static::NAME . '/Admin/Settings/Theme/Backend/settings');
|
|
||||||
} else {
|
|
||||||
$view->setTemplate('/Modules/Admin/Theme/Backend/modules-settings');
|
|
||||||
}
|
|
||||||
|
|
||||||
return $view;
|
return $view;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user