Hi, permission names on bat_unit.module seem build in wrong way.
Bundles for Unit and Unit types are "bat_unit" and "bat_unit_type": in method permissions() of class UnitPermissions, permission names are generated using "unit" and "unit_type" (eg. "view any unit entity of bundle X"). This makes function bat_entity_access_query_alter() return always FALSE for every access check also if user has "right" permission (check is done on "view any bat_unit entity of bundle X", using the "real" entity bundle name).
At the moment the only solution is to give less restrictive permissions to users (eg. "View any Unit type of any type") but the risk is to expose too much information.
Attached patch seems to work well but you need to reassign all permission after apply.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

maurizio.ganovelli created an issue. See original summary.

maurizio.ganovelli’s picture

Status: Active » Needs review

acrollet’s picture

Status: Needs review » Fixed

Thanks for the contribution! Committed in 029e2e5.

Status: Fixed » Closed (fixed)

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