I am finding that Business Rules that use the PROTECT or READ PROTECT actions are not "respected" by queries.
For example, I have a Visual Perspective for the Member Access level, which displays Events. Members (have Member access level) attend Events. An event organizer chooses specific Members to attend a specific Event.
I do not want Members who login to see Events for which they are not attending . An Event has Attendees, chosen by the organizer. I added a Business Rule to READ PROTECT Event from Member if that Member is not one of the attendees.
In the visual perspective, I have a QUERY that shows all Events. I had thought that the Event READ PROTECT Business Rule above would have "blocked" Events from the query to display if that LoggedInMember was not an Event Attendee of the Events returned by the query.
I realize that I can recode the Query with a WHERE condition to satisfy blocking those Events from displaying.
If that's the only way, and if the PROTECT actions are only executed in Forms, and not queries, then it seems that you have code to WHERE conditions in every query that you need this READ PROTECTion?
Or is there another way to have use queries to reflect READ PROTECTion?
Dave