cron-eu / acls-from-hell
文件中的ACL
2.0.0
2024-08-07 12:35 UTC
Requires
- typo3/cms-core: ^11.5 || ^12.4
This package is auto-updated.
Last update: 2024-09-07 12:46:05 UTC
README
此TYPO3扩展允许将表 be_groups
以下字段的值放入外部yaml文件中
non_exclude_fields
explicit_allowdeny
pagetypes_select
tables_select
tables_modify
groupMods
availableWidgets
file_permissions
它是如何工作的?
当计算当前BE用户的“权限”(请参阅 BackendUserAuthentication->fetchGroups()
)时,后处理钩子将解析每个BE组的文件引用到外部yaml文件中,并将它们的内 容添加到上面提到的逗号分隔字段中。
重要提示
请注意:这不是一个覆盖机制,而是逗号分隔值的添加!
因此,在选择外部文件时,务必清除上述字段的值。
这可能会有所帮助
UPDATE be_groups SET non_exclude_fields=NULL,explicit_allowdeny=NULL,pagetypes_select=NULL,tables_select=NULL,tables_modify=NULL,groupMods=NULL,availableWidgets=NULL,file_permissions=NULL WHERE tx_aclsfromhell_file <> '';
导出现有ACL
要将现有组的ACL导出到yaml文件,请调用此
bin/typo3 acls_from_hell:export <group> [--dry-run] [--verbose]
此命令
- 在
config/acls/
文件夹中创建一个新的yaml文件,其中包含给定组的ACL字段 - 将
tx_aclsfromhell_file
设置为新文件 - 清空上述字段的值