[BUGFIX] Make admin modules only available for admins
[Packages/TYPO3.CMS.git] / typo3 / sysext / beuser / ext_tables.php
1 <?php
2 if (!defined('TYPO3_MODE')) {
3 die('Access denied.');
4 }
5 if (TYPO3_MODE === 'BE') {
6 // Module Admin > Backend Users
7 \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule(
8 'TYPO3.CMS.' . $_EXTKEY,
9 'system',
10 'tx_Beuser',
11 'top',
12 array(
13 'BackendUser' => 'index, addToCompareList, removeFromCompareList, compare, online, terminateBackendUserSession'
14 ),
15 array(
16 'access' => 'admin',
17 'icon' => 'EXT:' . $_EXTKEY . '/ext_icon.gif',
18 'labels' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang_mod.xlf'
19 )
20 );
21 }