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.
The Translate operation is always added in the ListController as we don't have moved the user_access check from the form_alter to the operations_alter. If you click on it, you get access denied.
Patch follows in a second.
Comments
Comment #1
kfritscheAdded user_check and a test for it.
As proof that it works uploading also a test-only patch.
Comment #2
Gábor HojtsyThe patch looks good. Only one thing.
The explanation should be on a line above @var not on the same line.
Comment #3
Gábor Hojtsy"Link containing href admin/structure/views/view/test_view/translate found."
Looks like the test view does not have a language assigned.
Comment #4
kfritscheIn some case it was good that it failed as it indirectly proofs that the test works.
In the view test the user hadn't the 'translate configuration' permission and wasn't allowed to see the translate link.
I fixed the wrong comment and added the 'translate configuration' permission to the user in the view test. Works locally.
Comment #6
kfritscheRerolled.
Comment #7
kfritscheComment #8
Gábor Hojtsy