Provide translate link in overview operation

Created on 16 August 2023, about 1 year ago
Updated 19 September 2024, 10 days ago

Problem/Motivation

Currently, using the module permission, a user will be able to translate a webform using the tabs on the webform itself. However, the overview page also has a translate link in the operations dropdown which is populated by config_translation_entity_operation in core. That code still checks for the "translate configuration" permission.

Steps to reproduce

  1. Enable module
  2. Create user with this module permissions to translate and without "ranslate configuration" permission
  3. Go to admin/structure/webform
  4. Verify you won't see a translate button in the dropdown

Proposed resolution

Use hook_entity_operation to provide the translate link in operations, checking with the new permissions of this module.

Remaining tasks

Write patch. Review.

User interface changes

The translate options also appears in dropdown for users which have permission.

API changes

None.

Data model changes

None.

✨ Feature request
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡³πŸ‡±Netherlands askibinski

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024