简体   繁体   中英

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. 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

hope that helps.

Probably you should check hook_access to do it manually. Or look at the content access module if it may help.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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