My current client requested the ability to prevent users from adding product components to webforms based on permissions so he can have webform authors who are not allowed to attach products without having to train them not to ever touch the Product component type. Since he is willing to work around it, this is not a high priority for me right now, but I can see this being critical for some of my other clients. If necessary, I can work around this in a custom module when I deploy it for one of those clients.
That said, what are your thoughts on adding hook_perm() and adjusting uc_webform_webform_component_info() to add permission checks? Is this a feature you would want? If so, would you prefer a permission for each of the component types or a single permission that would allow any of the uc_webform components?
Comments
Comment #1
ldweeks commentedThis sounds like a good idea. I like the idea of adding an 'administer product components' permission for uc_webform so that not all webform admin's have the ability to add/remove products from webforms. The UI may pose some challenges, though.
I'll take a look once I get a few of the other issues out of the way.
Comment #2
deja711 commentedInteresting request, but closing it due to lack of activity.