My problem: I want to create an intranet, using Drupal 7. Access should be limited to verified users.
So at first I turned off the 'view published content' for anonymous users.

But I also want a custom node to be displayed if that's the case, so then Drupal 7 contradicts itself...

So I installed Node Access and made an extra content-type.
The extra content-type is called 'general-errors' and can be viewed by anonymous users.
The regular page content-type I've set to only be visible to verified users.

Then, one of those regular pages I've set as the default front page of my website.
And a page of the 'general-errors' type I've set as the 403 node of my website.

So if a user is logged in, he should get the regular page, if not he should get the custom page.

Reality check: everyone (either logged in or not) gets the regular page. How come? :s

And another small question: since I have added this custom content type, each time I click Add Content it adds content from this type. Why can't I choose what type it should be?

Comments

vlad.pavlovic’s picture

Are you still experiencing this issue? If so, what version of Drupal are you running and what are the Nodeaccess settings you have for anonymous users for the regular pages content? I believe the old default was to allow 'View' upon install of Nodeaccess, so that's why I am asking.

vlad.pavlovic’s picture

Status: Active » Postponed (maintainer needs more info)
vlad.pavlovic’s picture

Status: Postponed (maintainer needs more info) » Closed (duplicate)

This is a duplicate of #2075033: Access denied for anonymous users and #2033711: Disable access to an existing node for anonymous users. Patch was attached in those issues and pushed to dev version already. Thanks for reporting the issue.

vlad.pavlovic’s picture

Issue summary: View changes

Extra question + tried to correct title (typo)