Skip to content

Language-based editing permissions #4312

@thorsten

Description

@thorsten

Part of #3832. New build — no existing infra.

Background

No per-language permission exists today. translate_faq (FAQ_TRANSLATE) applies globally to every language. Editorial teams need "user/group may edit only language L".

Tasks

  • Schema: new tables faquser_right_language / faqgroup_right_language (+ DatabaseSchema.php and a new migration in Setup/Migration/Versions/)
  • Add hasPermissionForLanguage() to PermissionInterface; implement in BasicPermission and MediumPermission
  • Enforce language check in FAQ edit + translate operations and the FAQ query layer
  • Combine cleanly with category restrictions (category AND language together)
  • Admin UI for per-language assignment
  • Define Basic-mode behaviour (Basic mode has no groups)

Acceptance criteria

  • Language-specific editing is enforceable per user/group
  • A translator scoped to de cannot edit fr content
  • Works alongside category restrictions without conflict
  • Tests for permission logic + enforcement
  • Clear error when blocked by language restriction

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions