By zooney on
Is there a way anyone knows of which would allow for users to be automatically sent to a log-in prompt on an access denied error rather than just being given an access denied message?
I've restricted some webform nodes (using the content access module), and the functionality I'm after is to allow sending out links to particular webforms. If the webform is open to anonymous users you could just click the link and use the form. If the webform is only available to authenticated users, I want users to be able to click on the link, and be given the option to authenticate, rather than just seeing "access denied".
Is this possible?
Comments
Use logintoboggan module
Hi, you can use the module http://drupal.org/project/logintoboggan which will display a login form in access denied page.
Hope this helps.
--
bibstha
http://bibekshrestha.com.np
Thank you! This is very close
Thank you!
This is very close to what I'm looking for.
For anyone else with interest in this topic, I happened upon this in the Drupal documentation after posting this thread: http://drupal.org/node/60148
I think I'll be able to find an approach to use with both of these options.
The tricky thing is that I also now have Shibboleth authentication thrown into the mix, although I think I see what I can do about that now. I might be able to do a hook_init or something and read the header before the request goes out or something.