Issue Bug Closed

#103432Error in file list, if user is not allowed to edit the default language

Kai Strecker 03/20/24, 09:41 updated 07/09/24, 15:38

Description

Steps to reproduce

  1. Create a second system language.
  2. Create a new backend user group. This group gives access to the file list and limits access to only the second system language.
  3. Create a new backend user (not admin) and assign the just created user group to it.
  4. Switch to the just created user.
  5. Open the file list and upload a file.
  6. Click the file tile or switch to list view and click the edit pencil or the title of the file.

Result (error messages)

*Sorry, you didn’t have proper permissions to perform this change.*
ERROR: Language was not allowed.

*Edit form could not be loaded*
The edit form could not be loaded for the requested records. This might be due to insufficient permissions.

Possible solution

This is of course not really user-friendly. If those clicks always result in an error message for a user, those clicks should not be possible. In my opinion, there are two possible solutions:

  1. If there is at least one translation the user can edit, change the links, so the user edits one of the translations he has access to.
  2. Hide the pencil and make the title not clickable. So the user always has to use the language dropdown and click the translation specific edit button.

Thanks for fixing!

Reviews 2