[TASK] Add filter for be_users and be_groups
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Configuration / TCA / be_users.php
1 <?php
2 return [
3 'ctrl' => [
4 'label' => 'username',
5 'descriptionColumn' => 'description',
6 'tstamp' => 'tstamp',
7 'title' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:be_users',
8 'crdate' => 'crdate',
9 'cruser_id' => 'cruser_id',
10 'delete' => 'deleted',
11 'adminOnly' => true,
12 'rootLevel' => 1,
13 'default_sortby' => 'admin, username',
14 'enablecolumns' => [
15 'disabled' => 'disable',
16 'starttime' => 'starttime',
17 'endtime' => 'endtime'
18 ],
19 'type' => 'admin',
20 'typeicon_column' => 'admin',
21 'typeicon_classes' => [
22 '0' => 'status-user-backend',
23 '1' => 'status-user-admin',
24 'default' => 'status-user-backend'
25 ],
26 'useColumnsForDefaultValues' => 'usergroup,lockToDomain,options,db_mountpoints,file_mountpoints,file_permissions,userMods',
27 'versioningWS_alwaysAllowLiveEdit' => true,
28 'searchFields' => 'username,email,realName'
29 ],
30 'interface' => [
31 'showRecordFieldList' => 'username,description,usergroup,db_mountpoints,file_mountpoints,admin,options,file_permissions,userMods,lockToDomain,realName,email,disable,starttime,endtime,lastlogin'
32 ],
33 'columns' => [
34 'username' => [
35 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:be_users.username',
36 'config' => [
37 'type' => 'input',
38 'size' => 20,
39 'max' => 50,
40 'eval' => 'nospace,trim,lower,unique,required',
41 'autocomplete' => false,
42 ]
43 ],
44 'description' => [
45 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.description',
46 'config' => [
47 'type' => 'text',
48 'rows' => 5,
49 'cols' => 30,
50 'max' => 2000,
51 ]
52 ],
53 'password' => [
54 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:be_users.password',
55 'config' => [
56 'type' => 'input',
57 'size' => 20,
58 'max' => 100,
59 'eval' => 'trim,required,password,saltedPassword',
60 'autocomplete' => false,
61 ]
62 ],
63 'usergroup' => [
64 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:be_users.usergroup',
65 'config' => [
66 'type' => 'select',
67 'renderType' => 'selectMultipleSideBySide',
68 'foreign_table' => 'be_groups',
69 'foreign_table_where' => 'ORDER BY be_groups.title',
70 'size' => 5,
71 'maxitems' => 20,
72 'enableMultiSelectFilterTextfield' => true,
73 'fieldControl' => [
74 'editPopup' => [
75 'disabled' => false,
76 'options' => [
77 'title' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:be_users.usergroup_edit_title',
78 ],
79 ],
80 'addRecord' => [
81 'disabled' => false,
82 'options' => [
83 'title' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:be_users.usergroup_add_title',
84 'setValue' => 'prepend',
85 ],
86 ],
87 'listModule' => [
88 'disabled' => false,
89 'options' => [
90 'title' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:be_users.usergroup_list_title',
91 ],
92 ],
93 ],
94 ],
95 ],
96 'avatar' => [
97 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:be_users.avatar',
98 'config' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getFileFieldTCAConfig(
99 'avatar',
100 ['maxitems' => 1],
101 $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext']
102 )
103 ],
104 'lockToDomain' => [
105 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:lockToDomain',
106 'config' => [
107 'type' => 'input',
108 'size' => 20,
109 'eval' => 'trim',
110 'max' => 50,
111 'softref' => 'substitute'
112 ]
113 ],
114 'db_mountpoints' => [
115 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:be_users.options_db_mounts',
116 'config' => [
117 'type' => 'group',
118 'internal_type' => 'db',
119 'allowed' => 'pages',
120 'size' => 3,
121 'maxitems' => 100,
122 'autoSizeMax' => 10,
123 ]
124 ],
125 'file_mountpoints' => [
126 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:be_users.options_file_mounts',
127 'config' => [
128 'type' => 'select',
129 'renderType' => 'selectMultipleSideBySide',
130 'enableMultiSelectFilterTextfield' => true,
131 'foreign_table' => 'sys_filemounts',
132 'foreign_table_where' => ' AND sys_filemounts.pid=0 ORDER BY sys_filemounts.title',
133 'size' => 3,
134 'maxitems' => 100,
135 'autoSizeMax' => 10,
136 'fieldControl' => [
137 'editPopup' => [
138 'disabled' => false,
139 'options' => [
140 'title' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:file_mountpoints_edit_title',
141 ],
142 ],
143 'addRecord' => [
144 'disabled' => false,
145 'options' => [
146 'title' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:file_mountpoints_add_title',
147 'setValue' => 'prepend',
148 ],
149 ],
150 'listModule' => [
151 'disabled' => false,
152 'options' => [
153 'title' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:file_mountpoints_list_title',
154 ],
155 ],
156 ],
157 ],
158 ],
159 'email' => [
160 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.email',
161 'config' => [
162 'type' => 'input',
163 'size' => 20,
164 'eval' => 'trim',
165 'max' => 255,
166 'softref' => 'email[subst]'
167 ]
168 ],
169 'realName' => [
170 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.name',
171 'config' => [
172 'type' => 'input',
173 'size' => 20,
174 'eval' => 'trim',
175 'max' => 80
176 ]
177 ],
178 'disable' => [
179 'exclude' => 1,
180 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.enabled',
181 'config' => [
182 'type' => 'check',
183 'renderType' => 'checkboxToggle',
184 'items' => [
185 [
186 0 => '',
187 1 => '',
188 'invertStateDisplay' => true
189 ],
190 ],
191 ]
192 ],
193 'disableIPlock' => [
194 'exclude' => 1,
195 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:be_users.IPlockState',
196 'config' => [
197 'type' => 'check',
198 'renderType' => 'checkboxLabeledToggle',
199 'items' => [
200 [
201 0 => '',
202 1 => '',
203 'labelChecked' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.enabled',
204 'labelUnchecked' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.disabled',
205 'invertStateDisplay' => true
206 ],
207 ],
208 ]
209 ],
210 'admin' => [
211 'exclude' => 1,
212 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:be_users.admin',
213 'config' => [
214 'type' => 'check',
215 'renderType' => 'checkboxToggle',
216 'default' => 0,
217 'items' => [
218 [
219 0 => '',
220 1 => '',
221 ],
222 ],
223 'fieldInformation' => [
224 'adminIsSystemMaintainer' => [
225 'renderType' => 'adminIsSystemMaintainer',
226 ],
227 ],
228 ],
229 ],
230 'options' => [
231 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:be_users.options',
232 'config' => [
233 'type' => 'check',
234 'items' => [
235 ['LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:be_users.options_db_mounts', 0],
236 ['LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:be_users.options_file_mounts', 0]
237 ],
238 'default' => 3
239 ]
240 ],
241 'file_permissions' => [
242 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:be_groups.fileoper_perms',
243 'config' => [
244 'type' => 'select',
245 'renderType' => 'selectCheckBox',
246 'items' => [
247 ['LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:be_groups.file_permissions.folder', '--div--', 'apps-filetree-folder-default'],
248 ['LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:be_groups.file_permissions.folder_read', 'readFolder', 'apps-filetree-folder-default'],
249 ['LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:be_groups.file_permissions.folder_write', 'writeFolder', 'apps-filetree-folder-default'],
250 ['LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:be_groups.file_permissions.folder_add', 'addFolder', 'apps-filetree-folder-default'],
251 ['LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:be_groups.file_permissions.folder_rename', 'renameFolder', 'apps-filetree-folder-default'],
252 ['LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:be_groups.file_permissions.folder_move', 'moveFolder', 'apps-filetree-folder-default'],
253 ['LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:be_groups.file_permissions.folder_copy', 'copyFolder', 'apps-filetree-folder-default'],
254 ['LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:be_groups.file_permissions.folder_delete', 'deleteFolder', 'apps-filetree-folder-default'],
255 ['LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:be_groups.file_permissions.folder_recursivedelete', 'recursivedeleteFolder', 'apps-filetree-folder-default'],
256 ['LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:be_groups.file_permissions.files', '--div--', 'mimetypes-other-other'],
257 ['LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:be_groups.file_permissions.files_read', 'readFile', 'mimetypes-other-other'],
258 ['LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:be_groups.file_permissions.files_write', 'writeFile', 'mimetypes-other-other'],
259 ['LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:be_groups.file_permissions.files_add', 'addFile', 'mimetypes-other-other'],
260 ['LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:be_groups.file_permissions.files_rename', 'renameFile', 'mimetypes-other-other'],
261 ['LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:be_groups.file_permissions.files_replace', 'replaceFile', 'mimetypes-other-other'],
262 ['LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:be_groups.file_permissions.files_move', 'moveFile', 'mimetypes-other-other'],
263 ['LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:be_groups.file_permissions.files_copy', 'copyFile', 'mimetypes-other-other'],
264 ['LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:be_groups.file_permissions.files_delete', 'deleteFile', 'mimetypes-other-other']
265 ],
266 'size' => 17,
267 'maxitems' => 17,
268 'default' => 'readFolder,writeFolder,addFolder,renameFolder,moveFolder,deleteFolder,readFile,writeFile,addFile,renameFile,replaceFile,moveFile,copyFile,deleteFile'
269 ]
270 ],
271 'workspace_perms' => [
272 'exclude' => 1,
273 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:workspace_perms',
274 'config' => [
275 'type' => 'check',
276 'renderType' => 'checkboxToggle',
277 'default' => 1,
278 'items' => [
279 [
280 0 => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:workspace_perms_live',
281 1 => '',
282 ],
283 ],
284 ]
285 ],
286 'starttime' => [
287 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.starttime',
288 'config' => [
289 'type' => 'input',
290 'renderType' => 'inputDateTime',
291 'eval' => 'datetime,int',
292 'default' => 0
293 ]
294 ],
295 'endtime' => [
296 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.endtime',
297 'config' => [
298 'type' => 'input',
299 'renderType' => 'inputDateTime',
300 'eval' => 'datetime,int',
301 'default' => 0,
302 'range' => [
303 'upper' => mktime(0, 0, 0, 1, 1, 2038)
304 ]
305 ]
306 ],
307 'lang' => [
308 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:be_users.lang',
309 'config' => [
310 'type' => 'select',
311 'renderType' => 'selectSingle',
312 'items' => [
313 ['English', '']
314 ]
315 ]
316 ],
317 'userMods' => [
318 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:userMods',
319 'config' => [
320 'type' => 'select',
321 'renderType' => 'selectCheckBox',
322 'special' => 'modListUser',
323 'size' => 5,
324 'autoSizeMax' => 50,
325 'maxitems' => 100,
326 ]
327 ],
328 'allowed_languages' => [
329 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:allowed_languages',
330 'config' => [
331 'type' => 'select',
332 'renderType' => 'selectCheckBox',
333 'special' => 'languages',
334 ]
335 ],
336 'TSconfig' => [
337 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:TSconfig',
338 'config' => [
339 'type' => 'text',
340 'cols' => 40,
341 'rows' => 5,
342 'enableTabulator' => true,
343 'fixedFont' => true,
344 ],
345 ],
346 'createdByAction' => [
347 'config' => [
348 'type' => 'passthrough'
349 ]
350 ],
351 'lastlogin' => [
352 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.lastlogin',
353 'config' => [
354 'type' => 'input',
355 'renderType' => 'inputDateTime',
356 'readOnly' => true,
357 'eval' => 'datetime,int',
358 'default' => 0
359 ]
360 ],
361 'category_perms' => [
362 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:category_perms',
363 'config' => [
364 'type' => 'select',
365 'renderType' => 'selectTree',
366 'foreign_table' => 'sys_category',
367 'foreign_table_where' => ' AND (sys_category.sys_language_uid = 0 OR sys_category.l10n_parent = 0) ORDER BY sys_category.sorting',
368 'treeConfig' => [
369 'parentField' => 'parent',
370 'appearance' => [
371 'expandAll' => false,
372 'showHeader' => false,
373 'maxLevels' => 99,
374 ],
375 ],
376 'size' => 20,
377 'minitems' => 0,
378 ]
379 ],
380 ],
381 'types' => [
382 '0' => ['showitem' => '
383 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:general,
384 admin, username, password, avatar, usergroup, realName, email, lang, lastlogin,
385 --div--;LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:be_users.tabs.rights,
386 userMods, allowed_languages,
387 --div--;LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:be_users.tabs.mounts_and_workspaces,
388 workspace_perms, db_mountpoints, options, file_mountpoints, file_permissions, category_perms,
389 --div--;LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:be_users.tabs.options,
390 lockToDomain, disableIPlock, TSconfig,
391 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:access,
392 disable,--palette--;;timeRestriction,
393 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:notes,
394 description,
395 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:extended,
396 '],
397 '1' => ['showitem' => '
398 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:general,
399 admin, username, password, avatar, usergroup, realName, email, lang, lastlogin,
400 --div--;LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:be_users.tabs.options,
401 disableIPlock, TSconfig, db_mountpoints, options, file_mountpoints,
402 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:access,
403 disable,--palette--;;timeRestriction,
404 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:notes,
405 description,
406 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:extended,
407 ']
408 ],
409 'palettes' => [
410 'timeRestriction' => ['showitem' => 'starttime, endtime']
411 ],
412 ];