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().

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

weri’s picture

Status: Active » Needs review
FileSize
990 bytes
weri’s picture

Issue summary: View changes
rv0’s picture

With 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.

tobiberlin’s picture

Just what I searched for... thumbs up for this patch!

plach’s picture

Status: Needs review » Closed (works as designed)

Nope, 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.