[BUGFIX] FollowUp: Restrict visibility of Category in BE
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Configuration / TCA / be_users.php
1 <?php
2 return array(
3 'ctrl' => array(
4 'label' => 'username',
5 'tstamp' => 'tstamp',
6 'title' => 'LLL:EXT:lang/locallang_tca.xlf:be_users',
7 'crdate' => 'crdate',
8 'cruser_id' => 'cruser_id',
9 'delete' => 'deleted',
10 'adminOnly' => 1, // Only admin users can edit
11 'rootLevel' => 1,
12 'default_sortby' => 'ORDER BY admin, username',
13 'enablecolumns' => array(
14 'disabled' => 'disable',
15 'starttime' => 'starttime',
16 'endtime' => 'endtime'
17 ),
18 'type' => 'admin',
19 'typeicon_column' => 'admin',
20 'typeicons' => array(
21 '0' => 'be_users.gif',
22 '1' => 'be_users_admin.gif'
23 ),
24 'typeicon_classes' => array(
25 '0' => 'status-user-backend',
26 '1' => 'status-user-admin',
27 'default' => 'status-user-backend'
28 ),
29 'mainpalette' => '1',
30 'useColumnsForDefaultValues' => 'usergroup,lockToDomain,options,db_mountpoints,file_mountpoints,file_permissions,userMods',
31 'dividers2tabs' => TRUE,
32 'versioningWS_alwaysAllowLiveEdit' => TRUE,
33 'searchFields' => 'username,email,realName'
34 ),
35 'interface' => array(
36 'showRecordFieldList' => 'username,usergroup,db_mountpoints,file_mountpoints,admin,options,file_permissions,userMods,lockToDomain,realName,email,disable,starttime,endtime,lastlogin'
37 ),
38 'columns' => array(
39 'username' => array(
40 'label' => 'LLL:EXT:lang/locallang_tca.xlf:be_users.username',
41 'config' => array(
42 'type' => 'input',
43 'size' => '20',
44 'max' => '50',
45 'eval' => 'nospace,lower,unique,required'
46 )
47 ),
48 'password' => array(
49 'label' => 'LLL:EXT:lang/locallang_tca.xlf:be_users.password',
50 'config' => array(
51 'type' => 'input',
52 'size' => '20',
53 'max' => '40',
54 'eval' => 'required,md5,password'
55 )
56 ),
57 'usergroup' => array(
58 'label' => 'LLL:EXT:lang/locallang_tca.xlf:be_users.usergroup',
59 'config' => array(
60 'type' => 'select',
61 'foreign_table' => 'be_groups',
62 'foreign_table_where' => 'ORDER BY be_groups.title',
63 'size' => '5',
64 'maxitems' => '20',
65 'iconsInOptionTags' => 1,
66 'wizards' => array(
67 '_PADDING' => 1,
68 '_VERTICAL' => 1,
69 'edit' => array(
70 'type' => 'popup',
71 'title' => 'LLL:EXT:lang/locallang_tca.xlf:be_users.usergroup_edit_title',
72 'script' => 'wizard_edit.php',
73 'popup_onlyOpenIfSelected' => 1,
74 'icon' => 'edit2.gif',
75 'JSopenParams' => 'height=350,width=580,status=0,menubar=0,scrollbars=1'
76 ),
77 'add' => array(
78 'type' => 'script',
79 'title' => 'LLL:EXT:lang/locallang_tca.xlf:be_users.usergroup_add_title',
80 'icon' => 'add.gif',
81 'params' => array(
82 'table' => 'be_groups',
83 'pid' => '0',
84 'setValue' => 'prepend'
85 ),
86 'script' => 'wizard_add.php'
87 ),
88 'list' => array(
89 'type' => 'script',
90 'title' => 'LLL:EXT:lang/locallang_tca.xlf:be_users.usergroup_list_title',
91 'icon' => 'list.gif',
92 'params' => array(
93 'table' => 'be_groups',
94 'pid' => '0'
95 ),
96 'script' => 'wizard_list.php'
97 )
98 )
99 )
100 ),
101 'lockToDomain' => array(
102 'label' => 'LLL:EXT:lang/locallang_tca.xlf:lockToDomain',
103 'config' => array(
104 'type' => 'input',
105 'size' => '20',
106 'eval' => 'trim',
107 'max' => '50',
108 'softref' => 'substitute'
109 )
110 ),
111 'db_mountpoints' => array(
112 'label' => 'LLL:EXT:lang/locallang_tca.xlf:be_users.options_db_mounts',
113 'config' => array(
114 'type' => 'group',
115 'internal_type' => 'db',
116 'allowed' => 'pages',
117 'size' => '3',
118 'maxitems' => 25,
119 'autoSizeMax' => 10,
120 'show_thumbs' => '1',
121 'wizards' => array(
122 'suggest' => array(
123 'type' => 'suggest'
124 )
125 )
126 )
127 ),
128 'file_mountpoints' => array(
129 'label' => 'LLL:EXT:lang/locallang_tca.xlf:be_users.options_file_mounts',
130 'config' => array(
131 'type' => 'select',
132 'foreign_table' => 'sys_filemounts',
133 'foreign_table_where' => ' AND sys_filemounts.pid=0 ORDER BY sys_filemounts.title',
134 'size' => '3',
135 'maxitems' => 25,
136 'autoSizeMax' => 10,
137 'iconsInOptionTags' => 1,
138 'wizards' => array(
139 '_PADDING' => 1,
140 '_VERTICAL' => 1,
141 'edit' => array(
142 'type' => 'popup',
143 'title' => 'LLL:EXT:lang/locallang_tca.xlf:file_mountpoints_edit_title',
144 'script' => 'wizard_edit.php',
145 'icon' => 'edit2.gif',
146 'popup_onlyOpenIfSelected' => 1,
147 'JSopenParams' => 'height=350,width=580,status=0,menubar=0,scrollbars=1'
148 ),
149 'add' => array(
150 'type' => 'script',
151 'title' => 'LLL:EXT:lang/locallang_tca.xlf:file_mountpoints_add_title',
152 'icon' => 'add.gif',
153 'params' => array(
154 'table' => 'sys_filemounts',
155 'pid' => '0',
156 'setValue' => 'prepend'
157 ),
158 'script' => 'wizard_add.php'
159 ),
160 'list' => array(
161 'type' => 'script',
162 'title' => 'LLL:EXT:lang/locallang_tca.xlf:file_mountpoints_list_title',
163 'icon' => 'list.gif',
164 'params' => array(
165 'table' => 'sys_filemounts',
166 'pid' => '0'
167 ),
168 'script' => 'wizard_list.php'
169 )
170 )
171 )
172 ),
173 'email' => array(
174 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.email',
175 'config' => array(
176 'type' => 'input',
177 'size' => '20',
178 'eval' => 'trim',
179 'max' => '80',
180 'softref' => 'email[subst]'
181 )
182 ),
183 'realName' => array(
184 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.name',
185 'config' => array(
186 'type' => 'input',
187 'size' => '20',
188 'eval' => 'trim',
189 'max' => '80'
190 )
191 ),
192 'disable' => array(
193 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.disable',
194 'config' => array(
195 'type' => 'check'
196 )
197 ),
198 'disableIPlock' => array(
199 'label' => 'LLL:EXT:lang/locallang_tca.xlf:be_users.disableIPlock',
200 'config' => array(
201 'type' => 'check'
202 )
203 ),
204 'admin' => array(
205 'label' => 'LLL:EXT:lang/locallang_tca.xlf:be_users.admin',
206 'config' => array(
207 'type' => 'check',
208 'default' => '0'
209 )
210 ),
211 'options' => array(
212 'label' => 'LLL:EXT:lang/locallang_tca.xlf:be_users.options',
213 'config' => array(
214 'type' => 'check',
215 'items' => array(
216 array('LLL:EXT:lang/locallang_tca.xlf:be_users.options_db_mounts', 0),
217 array('LLL:EXT:lang/locallang_tca.xlf:be_users.options_file_mounts', 0)
218 ),
219 'default' => '3'
220 )
221 ),
222 'file_permissions' => array(
223 'label' => 'LLL:EXT:lang/locallang_tca.xlf:be_groups.fileoper_perms',
224 'config' => array(
225 'type' => 'select',
226 'items' => array(
227 array('LLL:EXT:lang/locallang_tca.xlf:be_groups.file_permissions.folder', '--div--', 'apps-filetree-folder-default'),
228 array('LLL:EXT:lang/locallang_tca.xlf:be_groups.file_permissions.folder_read', 'readFolder', 'apps-filetree-folder-default'),
229 array('LLL:EXT:lang/locallang_tca.xlf:be_groups.file_permissions.folder_write', 'writeFolder', 'apps-filetree-folder-default'),
230 array('LLL:EXT:lang/locallang_tca.xlf:be_groups.file_permissions.folder_add', 'addFolder', 'apps-filetree-folder-default'),
231 array('LLL:EXT:lang/locallang_tca.xlf:be_groups.file_permissions.folder_rename', 'renameFolder', 'apps-filetree-folder-default'),
232 array('LLL:EXT:lang/locallang_tca.xlf:be_groups.file_permissions.folder_move', 'moveFolder', 'apps-filetree-folder-default'),
233 array('LLL:EXT:lang/locallang_tca.xlf:be_groups.file_permissions.folder_copy', 'copyFolder', 'apps-filetree-folder-default'),
234 array('LLL:EXT:lang/locallang_tca.xlf:be_groups.file_permissions.folder_delete', 'deleteFolder', 'apps-filetree-folder-default'),
235 array('LLL:EXT:lang/locallang_tca.xlf:be_groups.file_permissions.folder_recursivedelete', 'folder_recursivedelete', 'apps-filetree-folder-default'),
236 array('LLL:EXT:lang/locallang_tca.xlf:be_groups.file_permissions.files', '--div--', 'mimetypes-other-other'),
237 array('LLL:EXT:lang/locallang_tca.xlf:be_groups.file_permissions.files_read', 'readFile', 'mimetypes-other-other'),
238 array('LLL:EXT:lang/locallang_tca.xlf:be_groups.file_permissions.files_write', 'writeFile', 'mimetypes-other-other'),
239 array('LLL:EXT:lang/locallang_tca.xlf:be_groups.file_permissions.files_add', 'addFile', 'mimetypes-other-other'),
240 array('LLL:EXT:lang/locallang_tca.xlf:be_groups.file_permissions.files_upload', 'files_upload', 'mimetypes-other-other'),
241 array('LLL:EXT:lang/locallang_tca.xlf:be_groups.file_permissions.files_rename', 'renameFile', 'mimetypes-other-other'),
242 array('LLL:EXT:lang/locallang_tca.xlf:be_groups.file_permissions.files_move', 'moveFile', 'mimetypes-other-other'),
243 array('LLL:EXT:lang/locallang_tca.xlf:be_groups.file_permissions.files_copy', 'copyFile', 'mimetypes-other-other'),
244 array('LLL:EXT:lang/locallang_tca.xlf:be_groups.fileoper_perms_unzip', 'unzipFile', 'mimetypes-other-other'),
245 array('LLL:EXT:lang/locallang_tca.xlf:be_groups.file_permissions.files_delete', 'deleteFile', 'mimetypes-other-other')
246 ),
247 'renderMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['accessListRenderMode'],
248 'size' => 16,
249 'maxitems' => 16,
250 'itemListStyle' => 'width:500px',
251 'default' => 'readFolder,writeFolder,addFolder,renameFolder,moveFolder,deleteFolder,readFile,writeFile,addFile,renameFile,moveFile,files_copy,deleteFile'
252 )
253 ),
254 'workspace_perms' => array(
255 'label' => 'LLL:EXT:lang/locallang_tca.xlf:workspace_perms',
256 'config' => array(
257 'type' => 'check',
258 'items' => array(
259 array('LLL:EXT:lang/locallang_tca.xlf:workspace_perms_live', 0)
260 ),
261 'default' => 1
262 )
263 ),
264 'starttime' => array(
265 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.starttime',
266 'config' => array(
267 'type' => 'input',
268 'size' => '13',
269 'max' => '20',
270 'eval' => 'datetime',
271 'default' => '0'
272 )
273 ),
274 'endtime' => array(
275 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.endtime',
276 'config' => array(
277 'type' => 'input',
278 'size' => '13',
279 'max' => '20',
280 'eval' => 'datetime',
281 'default' => '0',
282 'range' => array(
283 'upper' => mktime(0, 0, 0, 1, 1, 2038)
284 )
285 )
286 ),
287 'lang' => array(
288 'label' => 'LLL:EXT:lang/locallang_tca.xlf:be_users.lang',
289 'config' => array(
290 'type' => 'select',
291 'items' => array(
292 array('English', '')
293 )
294 )
295 ),
296 'userMods' => array(
297 'label' => 'LLL:EXT:lang/locallang_tca.xlf:userMods',
298 'config' => array(
299 'type' => 'select',
300 'special' => 'modListUser',
301 'size' => '5',
302 'autoSizeMax' => 50,
303 'maxitems' => '100',
304 'renderMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['accessListRenderMode'],
305 'iconsInOptionTags' => 1
306 )
307 ),
308 'allowed_languages' => array(
309 'label' => 'LLL:EXT:lang/locallang_tca.xlf:allowed_languages',
310 'config' => array(
311 'type' => 'select',
312 'special' => 'languages',
313 'maxitems' => '1000',
314 'renderMode' => 'checkbox'
315 )
316 ),
317 'TSconfig' => array(
318 'label' => 'LLL:EXT:lang/locallang_tca.xlf:TSconfig',
319 'config' => array(
320 'type' => 'text',
321 'cols' => '40',
322 'rows' => '5',
323 'softref' => 'TSconfig'
324 ),
325 'defaultExtras' => 'fixed-font : enable-tab'
326 ),
327 'createdByAction' => array(
328 'config' => array(
329 'type' => 'passthrough'
330 )
331 ),
332 'lastlogin' => array(
333 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.lastlogin',
334 'config' => array(
335 'type' => 'input',
336 'readOnly' => '1',
337 'size' => '12',
338 'eval' => 'datetime',
339 'default' => 0
340 )
341 ),
342 'category_perms' => array(
343 'label' => 'LLL:EXT:lang/locallang_tca.xlf:category_perms',
344 'config' => array(
345 'type' => 'select',
346 'foreign_table' => 'sys_category',
347 'foreign_table_where' => ' AND (sys_category.sys_language_uid = 0 OR sys_category.l10n_parent = 0) ORDER BY sys_category.sorting',
348 'renderMode' => 'tree',
349 'treeConfig' => array(
350 'parentField' => 'parent',
351 'appearance' => array(
352 'expandAll' => FALSE,
353 'showHeader' => FALSE,
354 'maxLevels' => 99,
355 ),
356 ),
357 'size' => 10,
358 'autoSizeMax' => 20,
359 'minitems' => 0,
360 'maxitems' => 9999
361 )
362 )
363 ),
364 'types' => array(
365 '0' => array('showitem' => 'disable;;;;1-1-1, username;;;;2-2-2, password, usergroup;;;;3-3-3, admin;;;;1-1-1, realName;;;;3-3-3, email, lang, lastlogin;;;;1-1-1,
366 --div--;LLL:EXT:lang/locallang_tca.xlf:be_users.tabs.rights, userMods;;;;2-2-2, allowed_languages,
367 --div--;LLL:EXT:lang/locallang_tca.xlf:be_users.tabs.mounts_and_workspaces, workspace_perms;;;;1-1-1, db_mountpoints;;;;2-2-2, options, file_mountpoints;;;;3-3-3, file_permissions, category_perms,
368 --div--;LLL:EXT:lang/locallang_tca.xlf:be_users.tabs.options, lockToDomain;;;;1-1-1, disableIPlock, TSconfig;;;;2-2-2,
369 --div--;LLL:EXT:lang/locallang_tca.xlf:be_users.tabs.access, starttime;;;;1-1-1,endtime,
370 --div--;LLL:EXT:lang/locallang_tca.xlf:be_users.tabs.extended'),
371 '1' => array('showitem' => 'disable;;;;1-1-1, username;;;;2-2-2, password, usergroup;;;;3-3-3, admin;;;;1-1-1, realName;;;;3-3-3, email, lang, lastlogin;;;;1-1-1,
372 --div--;LLL:EXT:lang/locallang_tca.xlf:be_users.tabs.options, disableIPlock;;;;1-1-1, TSconfig;;;;2-2-2, db_mountpoints;;;;3-3-3, options, file_mountpoints;;;;4-4-4,
373 --div--;LLL:EXT:lang/locallang_tca.xlf:be_users.tabs.access, starttime;;;;1-1-1,endtime,
374 --div--;LLL:EXT:lang/locallang_tca.xlf:be_users.tabs.extended')
375 )
376 );