Needs work
Project:
Allowed Languages
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
16 Jul 2019 at 15:07 UTC
Updated:
27 Oct 2020 at 23:20 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
heddnComment #3
heddnI checked when we filtered out the locked languages. It was in the initial commit, without any details on why that was done. Given that menus can be tied to a variety of languages, I wonder if we can loosen that requirement and allow users to have permissions for all the things.
Comment #4
heddnOK, a this point, this has a couple things related to language filtering that aren't strictly related to menus. I could split them out. But for now they are all very reviewable and it seems less complicated to keep them all in a single patch.
Comment #5
nterbogt commentedThe patch contains a regression in that the user form now allows 'Not specified' and 'Not applicable' to show on the user form as languages they can have access to. There are other cases in the code that specifically show these to all users, thus causing inconsistencies.
The patch also doesn't fix the
/admin/structure/menu/manage/[menu]form for the edit/delete buttons of menu links. This one is less of an issue because while the buttons show, they show an access denied message when clicked to users without access to the language.Generally a nice patch, but I feel there is overlap in how the content forms and menu forms restrict the language lists. We may be double handling now through a
widget_language_select_form_alterand theelement_info_alter.Comment #6
heddnWith the opening of the 2.x branch, any suggestions on how to proceed here?
Comment #7
nterbogt commentedHi!
I'm happy to look at this patch in the next week or so and rework it... unless you send me a change sooner than that :)
I'm pretty happy that permissions are applying correctly in 2.x for menus (try to edit a menu item for a language you don't have, you get access denied) but the same issues still appear (like showing the edit link on the menu form).
If you have the chance to install and test 2.x, I would appreciate it. Given the architecture is more modern, I'd like to continue on that branch if possible... and leave 1.x to bug fixes alone.