Custom module that adds a permission to allow specific roles to view restricted content.
Download and enable the module for either D8 or D9 from the respective branch. During install the permissions should be rebuilt automatically.
- Add a
field_restricted_access
boolean field to any node to allow restricting the access. - Update permissions on roles to allow viewing of restricted content.