Issue #3644297: Use entity create access on the add role route

The role add route (user.role_add) now uses _entity_create_access instead of only _permission: 'administer permissions', so hook_entity_create_access() is called for it. That permission is already the admin_permission of user_role, so nothing changes for sites without the hook.

The kernel test checks a user without the permission is denied, a user with it is allowed, and then a create-access hook that returns forbidden blocks the route. That last check fails without the routing change.

Closes #3644297

AI-Generated: Yes (I used Claude to help write the code and tests. I reviewed and tested it before pushing.)

Merge request reports

Loading
Loading