I am going through all menu-item of bat but am getting an access denied on admin/bat/config/booking-bundles and sub pages like admin/bat/config/booking-bundles/standard/edit.

I am running as an administrator, though not with uid = 1, but have checked all permissions under bat_booking.

Looking at the code I do see a permission 'administer bat_booking_bundle entities' in bat/modules/bat_booking/bat_booking.routing.yml for those pages but this permission does not appear in bat_booking.permissions.yml, nor is it listed on the permissions page (admin/people/permissions).

Same for the BookingBundle entity, which lists 'administer booking_bundle entities' (i.e. without bat_) as access permission, but this permission is also not listed on the permissions page.

Am I missing something or is this an error in the module?

Comments

fietserwin created an issue. See original summary.

fietserwin’s picture

I renamed all involved permissions to 'administer bat_booking_bundle entities' and that seems to work.

So change:
- bat_booking.module: bat_booking_type_access(): administer bat_booking_type entities to administer bat_booking_bundle entities
- bat_booking.permissions.yml: administer bat_booking_type entities to administer bat_booking_bundle entities
- BookingBundle.php: admin_permission = "administer booking_bundle entities"

  • nicola85 committed 8d29ba3 on 8.x-1.x
    Issue #3046875 by fietserwin: Use right permission name “administer...
nicola85’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.