title itself can be understood by most drupal users :). It would be nice to have this feature build in views
use case.
Show user custom message or pre-existing node (rendered entity) whenever user doesn't have access. This will be useful for premium content site (ex message: you must be "pro user" to see the content). Currently view data don't show at all to end user because
1. menu item will not be generated if access fails (when view path is linked in menu item)
2. when user visits view page manually he will see access denied page.

Comments

nithinkolekar created an issue.

wlofgren’s picture

Here is a workaround for no access behavior:

1. Add a Global: Null contextual filter to the view
2. Provide the default value: User ID from logged in user
3. Check Specify validation criteria with the Validator: Current user or role
4. Check "If the current user does not match the argument, validate the argument for users with specific roles." and select the roles to grant access.
5. Set the Action to take if filter value does not validate to: Display contents of "No results found"
6. Add a text area to the No Results Behavior settings for the view.