Sample TAC configuration: Premium content

Last updated on
30 April 2025

You are browsing documentation for an older version of Drupal, which is not supported any longer, and the information may not be correct. See current documentation for Contributed modules

Scenario

  • The website has some private content that is restricted to "Premium"-level customers.

Taxonomy configuration

Create an "Access level" vocabulary at admin/structure/taxonomy. Add a "Premium content" term to this vocabulary.

Role configuration

Create a "Premium customer" role.

Content type configuration

Add an "Access level" term reference field to the core page content type, using the "Access level" vocabulary.

TAC configuration

Anonymous user role

For the "Access level" vocabulary default, set:

  • View: Deny
  • Update: Deny
  • Delete: Deny
  • Create: Unchecked
  • List: Unchecked

Authenticated user role

Same configuration as the anonymous user role.

Premium customer role

For the "Access level" vocabulary default, set:

  • View: Allow
  • Update: Ignore
  • Delete: Ignore
  • Create: Unchecked
  • List: Unchecked

Help improve this page

Page status: Not set

You can: