[TASK] Update TYPO3 Icons to 0.0.14
[Packages/TYPO3.CMS.git] / typo3 / sysext / beuser / ext_tables.php
old mode 100755 (executable)
new mode 100644 (file)
index 7e6d00f..a152b82
@@ -1,5 +1,38 @@
 <?php
-if (!defined ('TYPO3_MODE'))   die ('Access denied.');
+defined('TYPO3_MODE') or die();
 
-if (TYPO3_MODE=='BE')  t3lib_extMgm::addModule('tools','beuser','top',t3lib_extMgm::extPath($_EXTKEY).'mod/');
-?>
\ No newline at end of file
+if (TYPO3_MODE === 'BE') {
+    // Module System > Backend Users
+    \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule(
+        'TYPO3.CMS.Beuser',
+        'system',
+        'tx_Beuser',
+        'top',
+        [
+            'BackendUser' => 'index, addToCompareList, removeFromCompareList, compare, online, terminateBackendUserSession',
+            'BackendUserGroup' => 'index'
+        ],
+        [
+            'access' => 'admin',
+            'icon' => 'EXT:beuser/Resources/Public/Icons/module-beuser.svg',
+            'labels' => 'LLL:EXT:beuser/Resources/Private/Language/locallang_mod.xlf'
+        ]
+    );
+
+    // Module System > Access
+    \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule(
+        'TYPO3.CMS.Beuser',
+        'system',
+        'tx_Permission',
+        'top',
+        [
+            'Permission' => 'index, edit, update'
+        ],
+        [
+            'access' => 'admin',
+            'icon' => 'EXT:beuser/Resources/Public/Icons/module-permission.svg',
+            'labels' => 'LLL:EXT:beuser/Resources/Private/Language/locallang_mod_permission.xlf',
+            'navigationComponentId' => 'typo3-pagetree'
+        ]
+    );
+}