[!!!][TASK] Make backend.php dispatched
[Packages/TYPO3.CMS.git] / typo3 / sysext / beuser / ext_tables.php
1 <?php
2 defined('TYPO3_MODE') or die();
3
4 if (TYPO3_MODE === 'BE') {
5 // Module System > Backend Users
6 \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule(
7 'TYPO3.CMS.Beuser',
8 'system',
9 'tx_Beuser',
10 'top',
11 array(
12 'BackendUser' => 'index, addToCompareList, removeFromCompareList, compare, online, terminateBackendUserSession',
13 'BackendUserGroup' => 'index'
14 ),
15 array(
16 'access' => 'admin',
17 'icon' => 'EXT:beuser/Resources/Public/Icons/module-beuser.svg',
18 'labels' => 'LLL:EXT:beuser/Resources/Private/Language/locallang_mod.xlf'
19 )
20 );
21
22 // Module System > Access
23 \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule(
24 'TYPO3.CMS.Beuser',
25 'system',
26 'tx_Permission',
27 'top',
28 array(
29 'Permission' => 'index, edit, update'
30 ),
31 array(
32 'access' => 'admin',
33 'icon' => 'EXT:beuser/Resources/Public/Icons/module-permission.svg',
34 'labels' => 'LLL:EXT:beuser/Resources/Private/Language/locallang_mod_permission.xlf',
35 'navigationComponentId' => 'typo3-pagetree'
36 )
37 );
38
39 // Register AJAX Controller
40 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::registerAjaxHandler('PermissionAjaxController::dispatch',
41 \TYPO3\CMS\Beuser\Controller\PermissionAjaxController::class . '->dispatch');
42 }