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.
Comment | File | Size | Author |
---|---|---|---|
bat_unit-wrong_permessions_name.patch | 1.71 KB | maurizio.ganovelli |
Comments
Comment #2
maurizio.ganovelliComment #4
acrollet CreditAttribution: acrollet commentedThanks for the contribution! Committed in 029e2e5.