Drupal 7 字段 - 只能由特定角色编辑 - 如何?
我有一些字段不允许我的用户编辑 - 但是,某些角色需要权限才能这样做。用户还可以编辑其他字段。
我该怎么做?我尝试寻找角色。 我确实看到了这个问题:Drupal,用户配置文件:添加字段*仅*可由管理员编辑,
但无法弄清楚如何确保常规用户永远无法编辑这些字段,以及如何确保只有特定角色可以编辑。 我对 php 相当擅长,但我似乎无法在 drupal 网站上找到我的方法。
/安德斯
I have some fields that my users cannot be allowed to edit - however, certain roles would need permission to do so. There are also other fields that the user may edit.
How would I do this? I tried looking in roles.
I did see this question: Drupal, user profiles: adding fields *only* editable by administrators
but couldnt figure out how to make sure that the fields are never editable by regular users, and also how to make sure only specific roles can edit.
I'm fairly good with php, but i can't seem to find my way around on the drupal site.
/Anders
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您是否尝试过使用字段权限模块。
have you tried using Field Permissions module.