~/talk

When Roles Aren’t Enough: Modern Permissions in Drupal with the Access Policy API

Talkat Florida DrupalCamp 2026 · 2026-02-20..02-22· [drupal, security]
links:none on file
slides:none on file

Drupal 10.3 ships a core Access Policy API (originating from Group work in 2020, merged to core 2024) that hands out or strips permissions outside roles by registering tagged services that implement calculatePermissions / alterPermissions. Examples show an entity-query-based contest-winner -> buy VIP tickets policy and a security-training policy that revokes create/edit when stale. Policies require correct cache tags, cache contexts, cache max-age and can inject services; they centralize contextual rules (time, user attributes, entity values) without role explosion.

AI-written summary · about

  1. 0:00Introduction to Access Policy API
  2. 1:27Limitations of Drupal roles
  3. 6:42Roles can't handle context
  4. 10:14When to use Access Policy API
  5. 11:16Brief history of the API
  6. 12:25How Access Policy API works
  7. 18:24Demo: Contest winner access policy
  8. 24:52Demo: Security training validation
  9. 31:55Should you use the Access Policy API?
  10. 34:26Final thoughts and resources
  11. 39:49Q&A session
~/search
type to search 6,518 conferences, 143,918 speakers and 192,133 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.