- Issue created by @mandclu
- 🇺🇸United States partdigital
Hi @madclu, thanks for the suggestion!
Access based on path alias hadn’t even occurred to me! I’ll add it to our list of ideas and spend some time investigating it. If you have any more thoughts about it I’d love to hear it!
In the meantime, for anyone who may be reading this, you can achieve something similar to this using this workaround.
- Add a Section vocabulary
- Add a Section taxonomy term entity reference field to a node
- Add a Section taxonomy term entity reference field to a user
- Install the pathauto module and add this pattern:
[node:field_section]/[node:title]
- Add the Section taxonomy terms to users and content
- Create a new Access policy called “Sections”
- Choose Group as the access policy type
- Add the access rule: Field match: Section - Compare taxonomy terms between the content item and current user”
- Go to Manage permissions and choose the roles who should be able to view content with this policy.
- Edit each node and assign the "Section" access policy.