[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 5b802a1..a152b82
@@ -1,27 +1,38 @@
 <?php
-
-if (!defined('TYPO3_MODE')) {
-       die('Access denied.');
-}
+defined('TYPO3_MODE') or die();
 
 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 Admin > Backend Users
-       Tx_Extbase_Utility_Extension::registerModule(
-               $_EXTKEY,
-               'tools',
-               'tx_Beuser',
-               'top',
-               array(
-                       'BackendUser' => 'index, addToCompareList, removeFromCompareList, compare, online, terminateBackendUserSession',
-               ),
-               array(
-                       'access' => 'user,group',
-                       'icon'   => 'EXT:' . $_EXTKEY . '/ext_icon.gif',
-                       'labels' => 'LLL:EXT:' . $_EXTKEY . '/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'
+        ]
+    );
 }
-
-?>
\ No newline at end of file