Views access node

This modul extend the access control of Views 3 additionally by:

  • Node type
  • Node type and user role
  • Node type and user permission
  • Current user
  • Current user and node type

This allows to embed views pages as tabs on specified node types. In addition the role and permission of users can be specified.

You can append a views page for a special node type and use paths like

  • node/%/my_page_view
  • user/%/my_view_for_user
  • etc ...

with selecting menu entry as tab. The views is shown only on the specified node types.

The solution without this modul is to enable the node or user validation in contextual filter, but this approach links directly to the drupal menu system via menu callbacks, so the view is only loaded if the menu system validate the access callback.

Usage in Views

Page settings example for user comments

  • Path: user/%/comments
  • Menu: Tab: My Comments
  • Access: Current user

Page settings example for nodes (rooms in a building)

  • Path: node/%/rooms
  • Menu: Tab: Rooms
  • Access: Node type and role | Building and authenticated user

Project information

Releases