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.
Problem/Motivation
The Translation tab is also shown, when the user can't create a new entity of given type. The tab should only shown, when the user has update permission to the given node.
Proposed resolution
Add an additional check with entity_access().
Comment | File | Size | Author |
---|---|---|---|
#1 | entity_translation-tab_access-2273395-1-D7.patch | 990 bytes | weri |
Comments
Comment #1
weri CreditAttribution: weri commentedComment #2
weri CreditAttribution: weri commentedComment #3
rv0 CreditAttribution: rv0 at Coworks.be commentedWith regular content translation all that is needed is the "view" permission.
https://api.drupal.org/api/drupal/modules!translation!translation.module...
Although with ET "update" is more truthful, I'm not sure if it makes sense.
Comment #4
tobiberlinJust what I searched for... thumbs up for this patch!
Comment #5
plachNope, sorry, this is by design: you are allowed to see the translation status even if you can't edit the node.
You should be able to alter the menu item and set your custom access logic if that behavior does not make sense for your project.