Closed (fixed)
Project:
Domain Language Access
Version:
2.0.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
2 Jul 2019 at 12:31 UTC
Updated:
8 Apr 2023 at 06:54 UTC
Jump to comment: Most recent
Comments
Comment #2
radelson commented+1 on the feature, that'd be very useful.
Not exactly sure what it does incur but we'll try conditionally loading the config override.
Comment #5
mtalt commentedComment #6
jlbellidoHello, I've applied the #4 patch submitted, it is a great starting point! However it doesn't work for me.
After debugging a bit I found out that the issue seems to be at:
Because initiateContext() is called once at the very beginning of the request where it seems the actual user is not loaded. Therefore, we always check the permissions against the Anonymous user.
Thanks!
Comment #8
jlbellidoI've provided a new MR which is really similar to #4 but it checks the permissions only when we are about to check the config names we might override.
For me, now \Drupal::service('current_user') is loaded with the valid user.
Cheers
Comment #11
rajeshreeputraThank you for working on this, merged, release will follow shortly.