When Roles Aren’t Enough: Modern Permissions in Drupal with the Access Policy API
summary
Drupal 10.3 adds the Access Policy API as a tagged-service system that the access policy processor loops through twice—once to calculate permissions and again to alter permissions—using an extensible AccessPolicyBase, a refinable calculated permissions item, and explicit cache tags, contexts, and max-age. The demo modules show a contest-winner policy that grants a “buy VIP tickets” permission by merging items and a security-training policy that revokes content permissions via overwrite; it works but requires careful caching and is already used by Group, External Roles, and Event Platform.
AI-written summary · about
