Access condition entity type error

Created on 22 January 2024, 10 months ago
Updated 23 January 2024, 10 months ago

Problem/Motivation

Was unable to get the "Auto Translate" option in the content view for any user other than Administrator.

Steps to reproduce

Create new role and add all needed permissions. Automatic translation option is then enabled on the node edit form, but not visible in the Operations column in /admin/content

Proposed resolution

Patch attached.
Basically there's a type error in the .module file, line 55 has $entity->getEntityTypeId instead of $entity->getEntityTypeId()
This results in the permission name being e.g. "auto translate article" instead of "auto translate article node".

🐛 Bug report
Status

Fixed

Version

2.1

Component

Code

Created by

🇭🇷Croatia abaudoin

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024