- Issue created by @MacSim
- Status changed to Needs review
about 1 year ago 7:37pm 14 November 2023 - last update
about 1 year ago 11 pass - ๐ซ๐ทFrance MacSim
#2 is adding more access check. It's not the problem.
The problem is : we should have no access check at all when
$check_access
is set toFALSE
- ๐ฎ๐ณIndia prashant.c Dharamshala
Prashant.c โ made their first commit to this issueโs fork.
- last update
about 1 year ago 11 pass - ๐ฎ๐ณIndia prashant.c Dharamshala
Adding
$check_access
to the condition. Please review.
Thanks! - Status changed to Needs work
about 1 year ago 2:16pm 20 December 2023 - ๐ซ๐ทFrance MacSim
#7 won't fix the problem
There's no problem when
$check_access
isTRUE
(that's what #7 is checking)The problem is that when
$check_access
isFALSE
the following code returns nothing when it should return a renderable array:return \Drupal::service('twig_tweak.field_view_builder') ->build($entity, $field_name, $view_mode, $langcode, $check_access);
- Status changed to Postponed: needs info
about 1 year ago 10:37am 5 January 2024 - ๐ท๐บRussia Chi
The access check parameter only applies to the entity being viewed. I this case it's a term from vocabulary B. It does not affect checking access for child entities (paragraphs). If it's not the case, please provide exact steps to reproduce. Preferably without involving contributed modules.
- ๐ซ๐ทFrance MacSim
Then it works as designed
Perhaps the doc should be more explicit about that point
The access check parameter only applies to the entity being viewed
Swapped category from "Bug report" to "Task" + component from "Code" to "Documentation"
Feel free to close the issue if it sounds explicit enough for you.