I'm building a site for a university where there will be custom roles setup for each school and/or department. Each role will be granted access to page nodes with child page inheritance enabled. The roles will also be granted access to specific terms which are used on custom post types such and Events, News, Menus, etc. A given role may have many policies attached to it. Therefore, I created a the following default policy which strips access to list, edit, publish, delete.
I have also other policies to grant access to page nodes for the various roles. This works fine thanks to the "Inherit From Parent Post" setting.
The challenge is granting access to custom posts using term inheritance. Can terms within a taxonomy inherit from their parent in a similar way page inheritance?
News, Events, and Menus post types all share the same taxonomy. Below is a excerpt of the hierarchy.
On the News post type if a user is granted access to see, edit, delete, publish posts that have a term of Arts & Sciences, I'd like them to also automatically have access to the News posts with the terms English Department, and Masters Program. An individual granted access to the English Department should also see the Masters Program posts. New child terms added should automatically get inheritance without touching the policy.
I thought of doing callbacks, but am not sure how that would work based on the documentation. Also, not sure if that would slow things down.
I appreciate any feedback you have.