I am requesting feedback on whether it is advisable to include logic in the 'render_callback' functionality which will control the content of a given MB Block based on taxonomy terms. Perhaps this is obvious, but I need to ensure that access to specific CPT entries is strictly controlled by using a robust and reliable method.
Please note that this is NOT a question regarding how to use WordPress user role-based capabilities.
I have a database of a variety of custom post types. Each CPT may contain hundreds of entries, but a given User is only allowed to access a small number of specific entries. This restriction is controlled by taxonomy terms associated to both the User and to specific CPT entries. In short, if a User shares the same taxonomy terms as a CPT entry, then the User may access the specific entry and its associated fields. If so, specific content will be displayed by the MB Block, otherwise an appropriate message will be displayed.
Any feedback on this proposed approach would be appreciated.