-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathext_localconf.php
More file actions
45 lines (40 loc) · 1.95 KB
/
ext_localconf.php
File metadata and controls
45 lines (40 loc) · 1.95 KB
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<?php
declare(strict_types=1);
use B13\Aim\Backend\FormDataProvider\DecryptApiKey;
use B13\Aim\Hooks\DefaultProviderHook;
use B13\Aim\Hooks\EncryptApiKey;
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass'][DefaultProviderHook::class] = DefaultProviderHook::class;
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass'][EncryptApiKey::class] = EncryptApiKey::class;
$GLOBALS['TYPO3_CONF_VARS']['SYS']['formEngine']['formDataGroup']['tcaDatabaseRecord'][DecryptApiKey::class] = [
'depends' => [\TYPO3\CMS\Backend\Form\FormDataProvider\DatabaseEditRow::class],
];
// Register AI capability permissions for backend user groups
$GLOBALS['TYPO3_CONF_VARS']['BE']['customPermOptions']['aim'] = [
'header' => 'LLL:EXT:aim/Resources/Private/Language/locallang_tca.xlf:permissions.header',
'items' => [
'capability_text' => [
'LLL:EXT:aim/Resources/Private/Language/locallang_tca.xlf:permissions.capability.text',
'actions-bolt',
],
'capability_vision' => [
'LLL:EXT:aim/Resources/Private/Language/locallang_tca.xlf:permissions.capability.vision',
'actions-image',
],
'capability_translation' => [
'LLL:EXT:aim/Resources/Private/Language/locallang_tca.xlf:permissions.capability.translation',
'actions-localize',
],
'capability_conversation' => [
'LLL:EXT:aim/Resources/Private/Language/locallang_tca.xlf:permissions.capability.conversation',
'actions-chat',
],
'capability_embedding' => [
'LLL:EXT:aim/Resources/Private/Language/locallang_tca.xlf:permissions.capability.embedding',
'actions-database',
],
'capability_toolcalling' => [
'LLL:EXT:aim/Resources/Private/Language/locallang_tca.xlf:permissions.capability.toolcalling',
'actions-cog',
],
],
];