-
-
Notifications
You must be signed in to change notification settings - Fork 72
/
ext_tables.php
executable file
·30 lines (29 loc) · 1.07 KB
/
ext_tables.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?php
defined('TYPO3') || die();
(static function (string $_EXTKEY) {
$typo3Version = (new \TYPO3\CMS\Core\Information\Typo3Version())->getMajorVersion();
if ($typo3Version < 12) {
// Add BE module on top of system main module
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule(
$_EXTKEY,
'system',
'txigldapssoauthM1',
'top',
[
\Causal\IgLdapSsoAuth\Controller\ModuleController::class => implode(',', [
'index',
'status',
'search',
'importFrontendUsers',
'importBackendUsers',
'importFrontendUserGroups',
'importBackendUserGroups',
]),
], [
'access' => 'admin',
'icon' => 'EXT:' . $_EXTKEY . '/Resources/Public/Icons/module-ldap.svg',
'labels' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang.xlf'
]
);
}
})('ig_ldap_sso_auth');