-
Notifications
You must be signed in to change notification settings - Fork 1.4k
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Admin cannot delete Translation Key #12166
Comments
I don't quite get the problem:
In your case is not working - I suppose - because you didn't selected all the languages (French is missing). Now imagine you delete a translation key: if this user doesn't have permission for a given language, than it's totally fine that he cannot delete the key, otherwise he would also delete the translation for a language he's not supposed to be able to modify. |
Yes, at first the user was not an admin. I just gave him permissions to view German and English translations. This worked as intended, his view was limited and he could not delete any keys. However, afterwards I gave the user admin privileges. Then the "shared Translations" Section in the user-settings also vanished (since its not needed, he sees everything anyway?). On logging in with the now admin user, he could also see all three Languages (German, English, French), just as intended. |
I can't reproduce the bug. |
Have a look at the video, it includes all the steps. However, here is a written guide to reproduce the bug:
Hope this clarifies the scenario. What debugger info would help you in this case? |
When I do these 3 steps, I am able to delete keys.
Could you maybe try to debug these lines of code from https://github.com/pimcore/pimcore/blob/10.x/bundles/AdminBundle/Resources/public/js/pimcore/settings/translation.js#L306 ? |
Hey, so the project in which this bug originally occurred is Pimcore Version v10.2.9 so the Code for this differs a bit. Here is what I found though:
However, when I tested this on https://demo.pimcore.fun/admin (10.4.x-dev) I could recreate the bug. |
Hi, sorry, but I also can't reproduce the bug on the demo app. Maybe you can tell me what I do differently with this video: 2022_06_02_080743.mp4 |
Expected behavior
A user with admin privileges can do everything. Including deleting Translation Keys.
Actual behavior
A user with admin privileges is not able to delete Translation Keys.
Steps to reproduce
adminTK.mp4
If a user has a role assigned which limits the access to the shared translation columns he is not able to delete keys.
After the user gets admin priviliges the does see all the translation columns, however he still cannot delete keys.
The text was updated successfully, but these errors were encountered: