简体   繁体   English

如何允许非管理员用户在TYPO3中输入常量

[英]How to allow non-admin users to enter constants in TYPO3

在TYPO3 6.x中,有没有办法允许非管理员BE用户输入常量?

You can enable access for the sys_template records for non-admins by adding this line into file typo3conf/extTable.php , so user will be able to edit records with WEB > List module: 通过typo3conf/extTable.php添加到typo3conf/extTable.php文件中,可以为非管理员启用对sys_template记录的访问,因此用户将可以使用WEB > List模块来编辑记录:

$GLOBALS['TCA']['sys_template']['ctrl']['adminOnly'] = 0;

Of course if you are using Access Lists in user's group, you need also check possibilities for viewing/editing Template table. 当然,如果您正在用户组中使用Access Lists ,则还需要检查查看/编辑Template表的可能性。

AFAIK, it's not possible to enable WEB > Template module for non-admins to make things easier. AFAIK,无法为非管理员启用WEB > Template模块,使事情变得更容易。

Note: For more details check description of security problem in the documentation 注意:有关更多详细信息,请查看文档中有关安全问题的描述

Therefore, if it's possible try to change behavior of the content by changes in common page properties or by adding FlexForm configuration to your plugin. 因此,如果可能,请尝试通过更改常见页面属性或将FlexForm配置添加到插件来更改内容的行为。 Adding the possibility of changing TS templates is the last option that should be considered. 添加更改TS模板的可能性是应考虑的最后一个选项。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM