Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By nshreders on
I couldn't find this searching the archives. I would like an arbitrary node to return a "You must be logged in to do that!" when being accessed by an anonymous user.
Is there not a simple way? Or am I blind? I tried the overkill of setting up the Taxonomy Access Control module briefly, but it wasn't working or did something wrong.
Is there a module that allows any node to be checked to authenticated users only (without having to setup a taxonomy scheme)?
Comments
try front_page
This contributed module front_page is intended to do this.
See http://drupal.org/handbook/modules/Front_page
im not sure if it is
I installed it, but it only seems to be able to change the what the front page looks like depending if the user is authenticated or anonymous. If a user enters a direct url to a node off the front page, this module does not seem to have any access control and allows anyone to view the node. Or am I doing something wrong?
Is there a module that
Yes, plenty. You might want to look at simpleaccess or node_privacy_byrole etc.
And optionally, customerror if you want non node error pages.
--
Anton
New to Drupal? | Forum posting tips | Troubleshooting FAQ
simple_access works. thanks!
simple_access works. thanks!