简体   繁体   English

将对Webform节点的访问限制为仅在Drupal中具有特定角色

[英]Restrict access to a webform node to only a particular role in Drupal

Im using Drupal 6.19 and have used the webform module in Drupal to create a form on my Drupal site.The form shows up in the navigation menu. 我正在使用Drupal 6.19,并使用了Drupal中的webform模块在我的Drupal网站上创建了一个表单,该表单显示在导航菜单中。 Is it possible to restrict access to the form to only a particular role ?. 是否可以将对表格的访问限制为仅特定角色? That is, i want only users belonging to a particular role to be able to see the form link in the navigation menu and be able to access it.Users belonging to other roles should not see the form link in the navigation menu and also should not be able to access it. 也就是说,我只希望属于特定角色的用户能够在导航菜单中看到表单链接并能够访问它。属于其他角色的用户不应在导航菜单中看到表单链接,并且也不应能够访问它。 Can this be done ? 能做到吗?

Please help Thank You 请帮忙谢谢

as always, there are several ways to skin a cat... :) 和往常一样,有几种方法可以给猫皮... :)

how about using the node privacy by role module? 如何通过角色模块使用节点隐私 seems to do exactly what you are asking for. 似乎完全符合您的要求。 you can set it by content type or on a per-node basis, if you need control that granular. 如果需要控制粒度,则可以按内容类型或每个节点进行设置。

other modules to look at at: content access and webform submission acl 其他要查看的模块: 内容访问Webform提交ACL

hope that helps. 希望能有所帮助。

Probably you should check hook_access to do it manually. 可能您应该检查hook_access来手动进行。 Or look at the content access module if it may help. 或查看内容访问模块(如果有帮助的话)。

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

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