[TASK] Add filter for be_users and be_groups
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Configuration / TCA / be_groups.php
1 <?php
2 return [
3 'ctrl' => [
4 'label' => 'title',
5 'descriptionColumn' => 'description',
6 'tstamp' => 'tstamp',
7 'crdate' => 'crdate',
8 'cruser_id' => 'cruser_id',
9 'delete' => 'deleted',
10 'default_sortby' => 'title',
11 'prependAtCopy' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.prependAtCopy',
12 'adminOnly' => true,
13 'rootLevel' => 1,
14 'typeicon_classes' => [
15 'default' => 'status-user-group-backend'
16 ],
17 'enablecolumns' => [
18 'disabled' => 'hidden'
19 ],
20 'title' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:be_groups',
21 'useColumnsForDefaultValues' => 'lockToDomain, file_permissions',
22 'versioningWS_alwaysAllowLiveEdit' => true,
23 'searchFields' => 'title'
24 ],
25 'interface' => [
26 'showRecordFieldList' => 'title, db_mountpoints, file_mountpoints, file_permissions, tables_select, tables_modify, pagetypes_select, non_exclude_fields, groupMods, lockToDomain, description'
27 ],
28 'columns' => [
29 'title' => [
30 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:be_groups.title',
31 'config' => [
32 'type' => 'input',
33 'size' => 25,
34 'max' => 50,
35 'eval' => 'trim,required'
36 ]
37 ],
38 'db_mountpoints' => [
39 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:db_mountpoints',
40 'config' => [
41 'type' => 'group',
42 'internal_type' => 'db',
43 'allowed' => 'pages',
44 'size' => 3,
45 'maxitems' => 100,
46 'autoSizeMax' => 10,
47 ]
48 ],
49 'file_mountpoints' => [
50 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:file_mountpoints',
51 'config' => [
52 'type' => 'select',
53 'renderType' => 'selectMultipleSideBySide',
54 'enableMultiSelectFilterTextfield' => true,
55 'foreign_table' => 'sys_filemounts',
56 'foreign_table_where' => ' AND sys_filemounts.pid=0 ORDER BY sys_filemounts.title',
57 'size' => 3,
58 'maxitems' => 100,
59 'autoSizeMax' => 10,
60 'fieldControl' => [
61 'editPopup' => [
62 'disabled' => false,
63 'options' => [
64 'title' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:file_mountpoints_edit_title',
65 ],
66 ],
67 'addRecord' => [
68 'disabled' => false,
69 'options' => [
70 'title' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:file_mountpoints_add_title',
71 'setValue' => 'prepend',
72 ],
73 ],
74 'listModule' => [
75 'disabled' => false,
76 'options' => [
77 'title' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:file_mountpoints_list_title',
78 ],
79 ],
80 ],
81 ],
82 ],
83 'file_permissions' => [
84 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:be_groups.fileoper_perms',
85 'config' => [
86 'type' => 'select',
87 'renderType' => 'selectCheckBox',
88 'items' => [
89 ['LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:be_groups.file_permissions.folder', '--div--', 'apps-filetree-folder-default'],
90 ['LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:be_groups.file_permissions.folder_read', 'readFolder', 'apps-filetree-folder-default'],
91 ['LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:be_groups.file_permissions.folder_write', 'writeFolder', 'apps-filetree-folder-default'],
92 ['LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:be_groups.file_permissions.folder_add', 'addFolder', 'apps-filetree-folder-default'],
93 ['LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:be_groups.file_permissions.folder_rename', 'renameFolder', 'apps-filetree-folder-default'],
94 ['LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:be_groups.file_permissions.folder_move', 'moveFolder', 'apps-filetree-folder-default'],
95 ['LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:be_groups.file_permissions.folder_copy', 'copyFolder', 'apps-filetree-folder-default'],
96 ['LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:be_groups.file_permissions.folder_delete', 'deleteFolder', 'apps-filetree-folder-default'],
97 ['LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:be_groups.file_permissions.folder_recursivedelete', 'recursivedeleteFolder', 'apps-filetree-folder-default'],
98 ['LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:be_groups.file_permissions.files', '--div--', 'mimetypes-other-other'],
99 ['LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:be_groups.file_permissions.files_read', 'readFile', 'mimetypes-other-other'],
100 ['LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:be_groups.file_permissions.files_write', 'writeFile', 'mimetypes-other-other'],
101 ['LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:be_groups.file_permissions.files_add', 'addFile', 'mimetypes-other-other'],
102 ['LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:be_groups.file_permissions.files_rename', 'renameFile', 'mimetypes-other-other'],
103 ['LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:be_groups.file_permissions.files_replace', 'replaceFile', 'mimetypes-other-other'],
104 ['LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:be_groups.file_permissions.files_move', 'moveFile', 'mimetypes-other-other'],
105 ['LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:be_groups.file_permissions.files_copy', 'copyFile', 'mimetypes-other-other'],
106 ['LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:be_groups.file_permissions.files_delete', 'deleteFile', 'mimetypes-other-other']
107 ],
108 'size' => 17,
109 'maxitems' => 17,
110 'default' => 'readFolder,writeFolder,addFolder,renameFolder,moveFolder,deleteFolder,readFile,writeFile,addFile,renameFile,replaceFile,moveFile,copyFile,deleteFile'
111 ]
112 ],
113 'workspace_perms' => [
114 'exclude' => 1,
115 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:workspace_perms',
116 'config' => [
117 'type' => 'check',
118 'renderType' => 'checkboxToggle',
119 'default' => 0,
120 'items' => [
121 [
122 0 => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:workspace_perms_live',
123 1 => '',
124 ],
125 ],
126 ]
127 ],
128
129 'pagetypes_select' => [
130 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:be_groups.pagetypes_select',
131 'config' => [
132 'type' => 'select',
133 'renderType' => 'selectCheckBox',
134 'special' => 'pagetypes',
135 'size' => 5,
136 'autoSizeMax' => 50,
137 'maxitems' => 20,
138 ]
139 ],
140 'tables_modify' => [
141 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:be_groups.tables_modify',
142 'config' => [
143 'type' => 'select',
144 'renderType' => 'selectCheckBox',
145 'special' => 'tables',
146 'size' => 5,
147 'autoSizeMax' => 50,
148 'maxitems' => 100,
149 ]
150 ],
151 'tables_select' => [
152 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:be_groups.tables_select',
153 'config' => [
154 'type' => 'select',
155 'renderType' => 'selectCheckBox',
156 'special' => 'tables',
157 'size' => 5,
158 'autoSizeMax' => 50,
159 'maxitems' => 100,
160 ]
161 ],
162 'non_exclude_fields' => [
163 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:be_groups.non_exclude_fields',
164 'config' => [
165 'type' => 'select',
166 'renderType' => 'selectCheckBox',
167 'special' => 'exclude',
168 'size' => 25,
169 'autoSizeMax' => 50,
170 ]
171 ],
172 'explicit_allowdeny' => [
173 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:be_groups.explicit_allowdeny',
174 'config' => [
175 'type' => 'select',
176 'renderType' => 'selectCheckBox',
177 'special' => 'explicitValues',
178 ]
179 ],
180 'allowed_languages' => [
181 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:allowed_languages',
182 'config' => [
183 'type' => 'select',
184 'renderType' => 'selectCheckBox',
185 'special' => 'languages',
186 ]
187 ],
188 'custom_options' => [
189 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:be_groups.custom_options',
190 'config' => [
191 'type' => 'select',
192 'renderType' => 'selectCheckBox',
193 'special' => 'custom',
194 ]
195 ],
196 'hidden' => [
197 'exclude' => 1,
198 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.enabled',
199 'config' => [
200 'type' => 'check',
201 'renderType' => 'checkboxToggle',
202 'default' => 0,
203 'items' => [
204 [
205 0 => '',
206 1 => '',
207 'invertStateDisplay' => true
208 ],
209 ],
210 ]
211 ],
212 'lockToDomain' => [
213 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:lockToDomain',
214 'config' => [
215 'type' => 'input',
216 'size' => 20,
217 'eval' => 'trim',
218 'max' => 50,
219 'softref' => 'substitute'
220 ]
221 ],
222 'groupMods' => [
223 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:userMods',
224 'config' => [
225 'type' => 'select',
226 'renderType' => 'selectCheckBox',
227 'special' => 'modListGroup',
228 'size' => 5,
229 'autoSizeMax' => 50,
230 'maxitems' => 100,
231 ]
232 ],
233 'description' => [
234 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.description',
235 'config' => [
236 'type' => 'text',
237 'rows' => 5,
238 'cols' => 30,
239 'max' => 2000,
240 ]
241 ],
242 'TSconfig' => [
243 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:TSconfig',
244 'config' => [
245 'type' => 'text',
246 'cols' => 40,
247 'rows' => 5,
248 'enableTabulator' => true,
249 'fixedFont' => true,
250 ],
251 ],
252 'subgroup' => [
253 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:be_groups.subgroup',
254 'config' => [
255 'type' => 'select',
256 'renderType' => 'selectMultipleSideBySide',
257 'enableMultiSelectFilterTextfield' => true,
258 'foreign_table' => 'be_groups',
259 'foreign_table_where' => 'AND NOT(be_groups.uid = ###THIS_UID###) ORDER BY be_groups.title',
260 'size' => 5,
261 'autoSizeMax' => 50,
262 'maxitems' => 20,
263 ]
264 ],
265 'category_perms' => [
266 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:category_perms',
267 'config' => [
268 'type' => 'select',
269 'renderType' => 'selectTree',
270 'foreign_table' => 'sys_category',
271 'foreign_table_where' => ' AND (sys_category.sys_language_uid = 0 OR sys_category.l10n_parent = 0) ORDER BY sys_category.sorting',
272 'treeConfig' => [
273 'parentField' => 'parent',
274 'appearance' => [
275 'expandAll' => false,
276 'showHeader' => false,
277 'maxLevels' => 99,
278 ],
279 ],
280 'size' => 20,
281 'minitems' => 0,
282 ]
283 ]
284 ],
285 'types' => [
286 '0' => ['showitem' => '
287 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:general,
288 title,subgroup,
289 --div--;LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:be_groups.tabs.base_rights,
290 groupMods, tables_select, tables_modify, pagetypes_select, non_exclude_fields, explicit_allowdeny, allowed_languages, custom_options,
291 --div--;LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:be_groups.tabs.mounts_and_workspaces,
292 workspace_perms, db_mountpoints, file_mountpoints, file_permissions, category_perms,
293 --div--;LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:be_groups.tabs.options,
294 lockToDomain, TSconfig,
295 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:access,
296 hidden,
297 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:notes,
298 description,
299 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:extended,
300 '],
301 ]
302 ];