Support Interface and Author's default language

Created on 18 July 2023, over 1 year ago

Problem/Motivation

There is one specific bug when the user without permission 'Create content in disabled language' still can create content with disabled language.

Steps to reproduce

  • Configure 'Content Language' settings
    • set Interface text language selected for page
    • uncheck Show language selector on create and edit pages option
  • Set for user role 'View disabled languages' permission
  • Unset for user role 'Create content in disabled language' permission
  • Disable EN language
  • Go to the page with EN interface language (/en)
  • Try to create new content.
  • Expected behavior: content must be created with fallback language or creation must be denied by default for this language.
  • Current behavior: we can create content with disabled language.

Proposed resolution

Override DefaultLanguageItem callback

πŸ› Bug report
Status

Needs review

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡¦Ukraine HitchShock Ukraine

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

Comments & Activities

Production build 0.71.5 2024