- First commit to issue fork.
- last update
about 1 year ago Composer require-dev failure - ๐บ๐ธUnited States j_ten_man
Just ran into this issue on a views search page. The user.current_user_context service was getting the current user set from the search API. This would then load the user (doing a full entityTypeManager load of the user) to supply the user account. Blocks were then no longer rendering on the page that were limited to specific roles since the current_user was user 0. Using -2 as the uid didn't help either. I've created a merge request which uses the uid of the current user. Not sure if there are other negative consequences from doing this, but the site that we're using this on shouldn't have any negative consequences from doing this.
A more elegant solution to this would be to reset the current_user and user.current_user_context services after everything is rendered, but wasn't sure how to accomplish that.