Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
How do I give a user/role access to the registrant entity page (/events/xxx/registrations/xxx)? I see in the routing file that permission is given to registrant.view, but I don't see that permission setting in /admin/people/permissions.
Comment | File | Size | Author |
---|---|---|---|
#3 | recurring_events-view_registrant_page_permissions-3232708-3.patch | 660 bytes | ryankavalsky |
Comments
Comment #2
owenbush CreditAttribution: owenbush at Lullabot commentedThis is a good spot, although not quite the right thing.
Registrants have their own access control handler. [entity-name].view is kind of a special access control, and not a specific permission.
Instead you need to look in Drupal\recurring_events_registration\RegistrantAccessControlHandler::checkAccess and find where it specifies the access control for 'view'. In this case, it expects a user to have the "view registrant entities" permission. That is the permission you need to grant, however, that permission does not seem to exist in the recurring_events_registration.permissions.yml file, so it needs to be added there.
Comment #3
ryankavalsky CreditAttribution: ryankavalsky commentedThanks for the tip! I've posted the patch here.
Comment #4
owenbush CreditAttribution: owenbush at Lullabot commentedThis looks good to me. I'll get it merged later today/this week. Thanks for the quick turnaround.
Comment #7
owenbush CreditAttribution: owenbush at Lullabot commentedThis looked good. I have merged it into the latest dev branches for 8.x-1.x and 2.0.x, it will be in rc2 when that comes out.
Thanks for the patch.