Add condition groups for access rules and selection rules

Created on 29 October 2023, about 1 year ago

Problem/Motivation

Right now Access rules and selection rules only support AND/OR validation operators. This is very useful in many cases however it can be limited if you need more complicated access or selection rule logic.

Access rule use case:

  • Grant access to this content
  • The user is an employee AND the time is between 9:00 AM and 5:00, Monday - Friday
  • OR the user is a manager

Selection rule use case:

  • Assign the Department access policy:
  • If content has the "department" field
  • AND The current policy isn't public OR the user is a manager

These two use cases are not possible without writing a custom access rule or selection rule.

Proposed resolution

Add the ability to create condition groups where you can have more complex logic.

API changes

The biggest technical hurdle of this is with queries. Right now the queries are already quite complex and to add in this feature would add more complexity. This will be postponed until we've added another approach for handling queries.

✨ Feature request
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States partdigital

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024