Problem/Motivation
I have some user roles that I would like to be able to view the overview page, but not add, edit, or delete.
Proposed resolution
Add a new permission:
access custom tokens overview:
title: 'Access the custom tokens overview page'
Remaining tasks
Should we add individual permissions for add, edit, and delete?
User interface changes
Go to /admin/people/permissions/module/token_custom and there will be a new permission:
Access the custom tokens overview page

| Comment | File | Size | Author |
|---|---|---|---|
| #4 | Screenshot 2025-07-28 at 2.14.01 PM.png | 267.25 KB | bhogue |
| token_custom-overview_perm.png | 37.38 KB | capysara |
Issue fork token_custom-3538085
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
capysara commentedI create a MR to add a new permission for viewing the overview admin page. I think it would be helpful to have other individual permissions, but this addition is good start.
Comment #4
bhogue commentedI can confirm the patch adds the requested permissions and those permissions can be set/unset without error.
Comment #6
anybodyThanks, I understand the use-case. Improved this a bit, but still the tests need to address the new permission.
Comment #8
grevil commentedTests don't need any changes, they were broken before and just got fixed.
LGTM!
Comment #9
grevil commentedAlthough the changes do not match the Issue-Summary:
But the code:
says that the user needs both permissions (add + edit + delete + overview access) to see the collection.
Either update the issue summary or the code.
Comment #10
anybody@grevil: I think you're wrong, the + is just a bit misleading...
See
_permission: A permission string (for example _permission: 'access content'). You can specify multiple permissions by separating them with ',' (comma) (_permission: 'access content,access user profiles') for AND logic or '+' (plus) for OR logic (_permission: 'access content+access user profiles' means a visitor needs either the access content permission or the access user profiles permission to view the page.)https://www.drupal.org/docs/drupal-apis/routing-system/structure-of-routes
Comment #11
grevil commentedWow, who though of that! 😅
Ok, my apologies. LGTM then!
Comment #13
grevil commented