#103432Error in file list, if user is not allowed to edit the default language
Description
Steps to reproduce
- Create a second system language.
- Create a new backend user group. This group gives access to the file list and limits access to only the second system language.
- Create a new backend user (not admin) and assign the just created user group to it.
- Switch to the just created user.
- Open the file list and upload a file.
- 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:
- 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.
- 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
History 27
-
Gerrit Code Review pushed patch set 1 for main to change 83573 status
NewUnder Review 03/22/24, 17:12 -
Gerrit Code Review pushed patch set 1 for 12.4 to change 83583 03/24/24, 21:59
-
Gerrit Code Review pushed patch set 2 for 12.4 to change 83583 03/24/24, 22:07
-
Gerrit Code Review pushed patch set 2 for main to change 83573 03/24/24, 22:08
-
Gerrit Code Review pushed patch set 3 for main to change 83573 03/25/24, 11:59
-
Oliver Bartsch commented and changed status
Under ReviewResolved done0 %100 % 03/25/24, 15:10 -
Benni Mack changed status
ResolvedClosed 07/09/24, 15:38
Applied in changeset commit:b2a9b9b268ac4a15bc06be9a0d2e4264b8c5d390.