Adding an Invisible Condition to Queries
Now that we've removed the view overrides in favor of using attributes, we might want to add a condition to view queries to control their visibility.
This condition would be evaluated to determine whether or not queries are used. Attributes could then be used to change these settings for individual users and groups.
There are a couple of things we could do with this:
- hide relationships for certain conditions or users
- have offline queries that are user-specific
- have different default queries for users and groups