This project is not covered by Drupal’s security advisory policy.

A Drupal module to handle access control based on role references.

Concept

Role Access Control (RAC) was developed around the same idea as Taxonomy Access Control. The major difference is the use of Role References Fields instead of Taxonomy Terms. This simplifies the access control configuration on site's who's TAC acls are mimicking the role list.

Versions

8.x-2.x

The 2.x version of this module is the recommended built. The module has been reworked around the Advanced Access module, to provide a clean interface to provide access to other modules and projects. It greatly simplifies the complexity of this module.

Usage

RAC provides the base configuration and management of access rules. To implement access control, install RAC along with a module that integrates with the Advanced Access ecosystem. Support for access control on nodes is part of the Advanced Access project. Additional modules can be found on the Advanced Access module page.

Setup

To enable RAC add an Entity Reference field to the node, or other entity type supporting fields and Advanced Access. Then go to the Advanced Access Settings page (/admin/config/people/adva) and enable "Role Access" for the desired entity type. The entity type requires an Advanced Access Consumer in order to work. For information on Advanced Access's supported entity types, please the projects page.

8.x-1.x

The 1.x version of this module, is no longer being developed and should not be used in favor of 8.x-2.x. No further work will be done on this module since its early in the development on the suite.

Usage

RAC provides the base configuration and management of access rules. With one of the included modules, access restrictions can be applied to Nodes, Paragraphs or Field Collections Items. Once installing RAC and the required sub-modules, add (or edit) a Entity Reference Field for Roles onto the desired entity type. On the field settings page for the new field, enable "Enable Role Access Control on this field."

Support

If you have any questions about module usage or feature requests, please open an issue.

Project information

Releases