Block access to translations of disabled languages

Created on 28 April 2020, over 4 years ago
Updated 20 September 2024, 3 months ago

Problem

Currently a user without the 'View disabled languages' permission but with access to translate an entity can see disabled language in the content translation overview page.

This provides unapproved access for content editors and results in errors when trying to change links which are using the advanced link module in text paragraphs.

Steps to reproduce:

  1. Make sure your site is multilingual and there is at least one disabled language configrued
  2. Login as user with access to translate a content. This user should not be granted for "View disabled languages"
  3. Go to translation overview page of a content you are able to translate
  4. In content translation overview page you should see all configured languages including disabled one.

Expected behaviour

As a user without access to view disabled language I should only see enabled languages in the content overview page.

Proposed solution

Create a separate submodule to alter content overview page and hide disabled language from the list there.

🐛 Bug report
Status

Needs work

Version

1.0

Component

Code

Created by

🇧🇪Belgium jurgenr

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024